From 67e6654f87dbecb2fd9fc28b0e5e2525711a8e09 Mon Sep 17 00:00:00 2001 From: dcocco Date: Mon, 22 Dec 2025 21:20:25 +0100 Subject: [PATCH] Added integration page --- .../integrations/providers/all_providers.mdx | 16 ++-- .../providers/open_agent_spec.mdx | 84 +++++++++++++++++++ 2 files changed, 92 insertions(+), 8 deletions(-) create mode 100644 src/oss/python/integrations/providers/open_agent_spec.mdx diff --git a/src/oss/python/integrations/providers/all_providers.mdx b/src/oss/python/integrations/providers/all_providers.mdx index e5a06c6116..e42d8dbec4 100644 --- a/src/oss/python/integrations/providers/all_providers.mdx +++ b/src/oss/python/integrations/providers/all_providers.mdx @@ -2041,14 +2041,6 @@ Browse the complete collection of integrations available for Python. LangChain P Operating LLMs in production environment. - - Framework-agnostic language for portable agent definitions. - - + + Framework-agnostic language for portable agent definitions. + + float: + return a - b + +async def main(): + loader = AgentSpecLoader(tool_registry={"subtraction-tool": subtract}) + assistant = loader.load_json(agentspec_config) + + while True: + user_input = input("USER >> ") + if user_input == "exit": + break + result = await assistant.ainvoke( + input={"messages": [{"role": "user", "content": user_input}]}, + ) + print(f"AGENT >> {result['messages'][-1].content}") +``` \ No newline at end of file