MCPcopy Create free account
hub / github.com/Dizzy-K/AutoPT / _ai_message

Function _ai_message

workflow/nodes.py:29–35  ·  view source on GitHub ↗
(content: str)

Source from the content-addressed store, hash-verified

27
28
29def _ai_message(content: str) -> Any:
30 try:
31 from langchain_core.messages import AIMessage
32
33 return AIMessage(content=content)
34 except ImportError:
35 return content
36
37
38def build_langchain_tools(tool_specs: list[ToolSpec]) -> list[Any]:

Callers 1

agent_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected