[PR #479] [MERGED] Migrate ai_services_agency to agency-swarm 1.7.0 (v1 API) #4610

Closed
opened 2026-05-12 07:39:01 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Shubhamsaboo/awesome-llm-apps/pull/479
Author: @nicko-ai
Created: 2/8/2026
Status: Merged
Merged: 2/8/2026
Merged by: @Shubhamsaboo

Base: mainHead: codex/agency-swarm-1-7-v1-migration


📝 Commits (1)

  • e7e2e1b Migrate ai_services_agency to agency-swarm v1.7.0

📊 Changes

2 files changed (+59 additions, -48 deletions)

View changed files

📝 advanced_ai_agents/multi_agent_apps/agent_teams/ai_services_agency/agency.py (+57 -46)
📝 advanced_ai_agents/multi_agent_apps/agent_teams/ai_services_agency/requirements.txt (+2 -2)

📄 Description

Summary

  • bump agency-swarm from 0.4.1 to 1.7.0 in advanced_ai_agents/multi_agent_apps/agent_teams/ai_services_agency/requirements.txt
  • migrate advanced_ai_agents/multi_agent_apps/agent_teams/ai_services_agency/agency.py from v0 APIs to v1 APIs per Agency Swarm migration guidance
  • replace set_openai_key(...) with standard OPENAI_API_KEY environment resolution
  • replace deprecated Agent params (temperature, max_prompt_tokens) with model_settings=ModelSettings(...)
  • replace legacy Agency([...]) structure with positional entry-point agents plus communication_flows=[...]
  • replace legacy agency call sites from agency.get_completion(...) to agency.get_response_sync(...).final_output
  • migrate custom tool shared state from _shared_state to self.context.get(...) / self.context.set(...)

Validation

  • python3 -m py_compile advanced_ai_agents/multi_agent_apps/agent_teams/ai_services_agency/agency.py
  • local v1.7.0 smoke test script that instantiates all agents + agency communication flow with ModelSettings(...) and verifies construction succeeds

🔄 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/Shubhamsaboo/awesome-llm-apps/pull/479 **Author:** [@nicko-ai](https://github.com/nicko-ai) **Created:** 2/8/2026 **Status:** ✅ Merged **Merged:** 2/8/2026 **Merged by:** [@Shubhamsaboo](https://github.com/Shubhamsaboo) **Base:** `main` ← **Head:** `codex/agency-swarm-1-7-v1-migration` --- ### 📝 Commits (1) - [`e7e2e1b`](https://github.com/Shubhamsaboo/awesome-llm-apps/commit/e7e2e1b298992b20a1f6486de72a771f9c173285) Migrate ai_services_agency to agency-swarm v1.7.0 ### 📊 Changes **2 files changed** (+59 additions, -48 deletions) <details> <summary>View changed files</summary> 📝 `advanced_ai_agents/multi_agent_apps/agent_teams/ai_services_agency/agency.py` (+57 -46) 📝 `advanced_ai_agents/multi_agent_apps/agent_teams/ai_services_agency/requirements.txt` (+2 -2) </details> ### 📄 Description ## Summary - bump `agency-swarm` from `0.4.1` to `1.7.0` in `advanced_ai_agents/multi_agent_apps/agent_teams/ai_services_agency/requirements.txt` - migrate `advanced_ai_agents/multi_agent_apps/agent_teams/ai_services_agency/agency.py` from v0 APIs to v1 APIs per Agency Swarm migration guidance - replace `set_openai_key(...)` with standard `OPENAI_API_KEY` environment resolution - replace deprecated Agent params (`temperature`, `max_prompt_tokens`) with `model_settings=ModelSettings(...)` - replace legacy `Agency([...])` structure with positional entry-point agents plus `communication_flows=[...]` - replace legacy agency call sites from `agency.get_completion(...)` to `agency.get_response_sync(...).final_output` - migrate custom tool shared state from `_shared_state` to `self.context.get(...)` / `self.context.set(...)` ## Validation - `python3 -m py_compile advanced_ai_agents/multi_agent_apps/agent_teams/ai_services_agency/agency.py` - local v1.7.0 smoke test script that instantiates all agents + agency communication flow with `ModelSettings(...)` and verifies construction succeeds --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-12 07:39:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-llm-apps#4610