MCPcopy
hub / github.com/langroid/langroid / _make_agent

Function _make_agent

tests/main/test_handle_message_security.py:40–43  ·  view source on GitHub ↗
(use: bool)

Source from the content-addressed store, hash-verified

38
39
40def _make_agent(use: bool) -> ChatAgent:
41 agent = ChatAgent(ChatAgentConfig(llm=None))
42 agent.enable_message(SecretTool, use=use, handle=True)
43 return agent
44
45
46def _user_doc(content: str) -> ChatDocument:

Calls 3

enable_messageMethod · 0.95
ChatAgentClass · 0.90
ChatAgentConfigClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…