MCPcopy Create free account
hub / github.com/IBM/mcp-cli / _text_response

Function _text_response

tests/planning/test_agentic_loop_integration.py:174–183  ·  view source on GitHub ↗

Build a mock LLM response with text only (step done). Uses the chuk_llm native format (top-level response key).

(text: str = "Step complete.")

Source from the content-addressed store, hash-verified

172
173
174def _text_response(text: str = "Step complete.") -> dict:
175 """Build a mock LLM response with text only (step done).
176
177 Uses the chuk_llm native format (top-level response key).
178 """
179 return {
180 "response": text,
181 "tool_calls": None,
182 "usage": {"prompt_tokens": 100, "completion_tokens": 20},
183 }
184
185
186# ── Integration Tests ──────────────────────────────────────────────────────

Calls

no outgoing calls

Tested by

no test coverage detected