moo.agent.tests.test_llm_client
Tests for moo/agent/llm_client.py.
- Covers:
make_agent: returns a PydanticAI Agent per provider
call_llm: runs the agent and returns the validated AgentResponse
_model_settings: provider-specific sampling-kwarg assembly
_patch_reasoning_content: LM Studio reasoning_content -> content shim
Functions
|
The lm_studio config branch still produces a validated response. |
|
call_llm runs the agent and returns (validated AgentResponse, tool_calls). |
|
|
|
|
|
|
|
Non-lm_studio providers omit extra_body and unset sampling params. |
|
LM Studio gets repeat_penalty/min_p/reasoning_effort in extra_body. |
|
When content is already populated, reasoning_content is ignored. |
|
When content is empty, reasoning_content is copied into content. |