Skip to content

pi_agent: loop + Agent SDK with events and tool hooks - #29

Merged
maozhen520 merged 1 commit into
masterfrom
implement/21-pi-agent
Jul 21, 2026
Merged

pi_agent: loop + Agent SDK with events and tool hooks#29
maozhen520 merged 1 commit into
masterfrom
implement/21-pi-agent

Conversation

@maozhen520

Copy link
Copy Markdown
Owner

Summary

  • Add dual public surface for pi_agent: pure agent_loop / agent_loop_continue and stateful Agent
  • Support prompt / continue / steer / follow_up, awaited ordered subscribe settlement, AgentMessage→LLM projection, and parallel|sequential tool hooks behind an injectable StreamFn
  • Cover acceptance criteria for pi_agent: loop + Agent SDK with events and tool hooks #21 with fake-StreamFn pytest (no live LiteLLM)

Test plan

  • uv run ruff check .
  • uv run ty check
  • uv run pytest
  • CI green on the PR

Closes #21

Made with Cursor

Implements the dual public surface behind an injectable StreamFn so agent
runtime behavior can be verified without a live LiteLLM dependency (#21).

Co-authored-by: Cursor <cursoragent@cursor.com>
@maozhen520
maozhen520 merged commit 8e362a7 into master Jul 21, 2026
@maozhen520
maozhen520 deleted the implement/21-pi-agent branch July 21, 2026 10:56
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.

pi_agent: loop + Agent SDK with events and tool hooks

1 participant