Skip to content

Conversation

@RaghavPrabhu
Copy link
Contributor

@RaghavPrabhu RaghavPrabhu commented Nov 6, 2025

Default as litellm and Agent callback events support added.


Note

Introduces async status callback hooks with pipe/agent context throughout Agent, Engine, and AgentXPipe, fixes token API naming and MCP stdio session handling, updates CLI generation, tests, and bumps version.

  • Core (Agent/Engine/Pipe):
    • Add async status_callback hooks with events (e.g., agent_execute_start, agent_llm_execute, agent_iteration_complete, agent_goal_satisfied, pipe_flow_start/end, errors) and context (pipe_id, agent_id, agent, conversation_id).
    • Thread pipe_id/agent metadata through engine start and goal verification.
    • Simplify goal verification (remove token-count gate) and add robust retry/error callbacks.
  • MCP Handler:
    • Simplify stdio connection (no temp file), create ClientSession via stdio_client, ensure session initialized and cleaned up.
  • LLM:
    • Fix async token API name (account_tokens -> correctly delegated to client); LiteLLM/OpenAI paths aligned.
  • Utils:
    • Add StatusCallback type and _maybe_await; expose ptype_to_json_scheme usage; minor whitespace cleanup.
  • CLI:
    • Safer pipe generation (default empty memory), formatting fixes, and kwargs handling; default memory to empty list in config.
  • Templates/Deps:
    • Update app template to superagentx ^1.0.0b5.
  • Tests:
    • Update tests to pass status_callback, adjust models, add LiteLLM/OpenAI test tweaks.
  • Version:
    • Bump package to 1.0.0b15.

Written by Cursor Bugbot for commit db2f3c6. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on December 8

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants