[PR #36] [MERGED] Agent as a tool #226

Closed
opened 2026-02-16 01:16:33 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/llama_deploy/pull/36
Author: @nerdai
Created: 6/24/2024
Status: Merged
Merged: 6/24/2024
Merged by: @logan-markewich

Base: mainHead: nerdai/agent-as-a-tool


📝 Commits (10+)

  • b357b88 fix imports for tool service example script
  • be635f3 wip
  • 21e8e75 add AgentServiceTool
  • d4b32fd mv test_meta_service_tool into tools
  • 576b6f0 add init and from_service_def unit tests
  • 0820046 tdd tool call output unit test
  • 03466d7 fn schema validation
  • 18cf208 wip
  • 3707014 unit test for tool call output
  • f95e557 add unit tests for raising timeout

📊 Changes

10 files changed (+658 additions, -17 deletions)

View changed files

📝 README.md (+2 -1)
📝 example_scripts/agentic_toolservice_local_single.py (+1 -1)
example_scripts/pipeline_agent_service_tool_local_single.py (+68 -0)
📝 llama_agents/__init__.py (+7 -1)
📝 llama_agents/services/agent.py (+73 -10)
📝 llama_agents/services/human.py (+0 -3)
📝 llama_agents/tools/__init__.py (+2 -1)
llama_agents/tools/agent_service_tool.py (+222 -0)
tests/tools/test_agent_service_tool.py (+283 -0)
📝 tests/tools/test_meta_service_tool.py (+0 -0)

📄 Description

  • Add AgentServiceTool
    • Enables one agent service to use another one as a tool
    • The tool call is still facilitated through the message queue
    • Convenience constructor from ServiceDefinition
  • Unit tests
  • Example script

closes #27


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/llama_deploy/pull/36 **Author:** [@nerdai](https://github.com/nerdai) **Created:** 6/24/2024 **Status:** ✅ Merged **Merged:** 6/24/2024 **Merged by:** [@logan-markewich](https://github.com/logan-markewich) **Base:** `main` ← **Head:** `nerdai/agent-as-a-tool` --- ### 📝 Commits (10+) - [`b357b88`](https://github.com/run-llama/llama_deploy/commit/b357b88175c6cb55080cd8c6409a47e063e56a72) fix imports for tool service example script - [`be635f3`](https://github.com/run-llama/llama_deploy/commit/be635f348dc891d4ccf3da350aec5f8e79e8c32e) wip - [`21e8e75`](https://github.com/run-llama/llama_deploy/commit/21e8e7526dfbf732654d2a280e7df25f75b0a8e9) add AgentServiceTool - [`d4b32fd`](https://github.com/run-llama/llama_deploy/commit/d4b32fd38eda13decc7f8e0b69a4d8c959098282) mv test_meta_service_tool into tools - [`576b6f0`](https://github.com/run-llama/llama_deploy/commit/576b6f021fb28a002f235b3297555304f9d4a88b) add init and from_service_def unit tests - [`0820046`](https://github.com/run-llama/llama_deploy/commit/082004636b0babc49d2e53d7c80efb9834935d55) tdd tool call output unit test - [`03466d7`](https://github.com/run-llama/llama_deploy/commit/03466d71f830b2427dce366a12d1fd2aefdc08cd) fn schema validation - [`18cf208`](https://github.com/run-llama/llama_deploy/commit/18cf20889e258dd33fc51aa4f8865167b02b7d31) wip - [`3707014`](https://github.com/run-llama/llama_deploy/commit/3707014a706d83090ab37966da59e5481419312a) unit test for tool call output - [`f95e557`](https://github.com/run-llama/llama_deploy/commit/f95e557e1ba44713507e11dee309b461494265f4) add unit tests for raising timeout ### 📊 Changes **10 files changed** (+658 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+2 -1) 📝 `example_scripts/agentic_toolservice_local_single.py` (+1 -1) ➕ `example_scripts/pipeline_agent_service_tool_local_single.py` (+68 -0) 📝 `llama_agents/__init__.py` (+7 -1) 📝 `llama_agents/services/agent.py` (+73 -10) 📝 `llama_agents/services/human.py` (+0 -3) 📝 `llama_agents/tools/__init__.py` (+2 -1) ➕ `llama_agents/tools/agent_service_tool.py` (+222 -0) ➕ `tests/tools/test_agent_service_tool.py` (+283 -0) 📝 `tests/tools/test_meta_service_tool.py` (+0 -0) </details> ### 📄 Description - Add `AgentServiceTool` - Enables one agent service to use another one as a tool - The tool call is still facilitated through the message queue - Convenience constructor from ServiceDefinition - Unit tests ✅ - Example script ✅ closes #27 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:16:33 -05:00
yindo closed this issue 2026-02-16 01:16:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_deploy#226