Skip to content

feat(tools): introduce agent and tool simulation#117

Open
s-alexey wants to merge 5 commits intoalexey/test-chatsfrom
alexey/tools
Open

feat(tools): introduce agent and tool simulation#117
s-alexey wants to merge 5 commits intoalexey/test-chatsfrom
alexey/tools

Conversation

@s-alexey
Copy link
Copy Markdown
Contributor

@s-alexey s-alexey commented Apr 3, 2026

This commit introduces a new simulation capability for models that do not natively support tool/function calling, allowing them to act as tool-using agents through structured prompting.

  • simulate_agent: An iterative agent loop that automatically prompts the LLM with available tools, parses its requested tool calls, executes them locally, and feeds the results back until a final answer is reached (or max_iterations is hit).
  • simulate_respond_with_tools: A single-turn simulation that wraps the LLM call with instructions and a structured output schema built dynamically from the provided Python functions.

s-alexey added 3 commits April 2, 2026 14:40
Updates the LLMChat.invoke method signature and its usage in respond to support returning llm_messages.LLMMessage directly.
Provides MockedChat with predefined responses to decouple tests from the LLMChat implementation.
@s-alexey s-alexey requested a review from dolaameng April 3, 2026 11:41
This commit introduces a new simulation capability for models that do
not natively support tool/function calling, allowing them to act as
tool-using agents through structured prompting.

- `simulate_agent`: An iterative agent loop that automatically prompts
  the LLM with available tools, parses its requested tool calls, executes
  them locally, and feeds the results back until a final answer is
  reached (or `max_iterations` is hit).
- `simulate_respond_with_tools`: A single-turn simulation that wraps the
  LLM call with instructions and a structured output schema built dynamically
  from the provided Python functions.
@s-alexey s-alexey force-pushed the alexey/test-chats branch from 0996c7c to 31f223b Compare April 3, 2026 19:23
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.

1 participant