Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1 for AGS Spec Provider Class #4007

Closed
Tracked by #4006
victordibia opened this issue Oct 31, 2024 · 1 comment · Fixed by #4097
Closed
Tracked by #4006

v1 for AGS Spec Provider Class #4007

victordibia opened this issue Oct 31, 2024 · 1 comment · Fixed by #4097
Assignees
Labels
proj-studio Related to AutoGen Studio. size-small takes 1-2 days
Milestone

Comments

@victordibia
Copy link
Collaborator

victordibia commented Oct 31, 2024

Create an initial provider class for mapping declarative specs to agentchat specifications. Ideally this will be refactored to use a generic provider at some future time. Core behaviour would be to take in a declarative (json/yaml) spec and return an AgentChat team that can run.

{
  "version": "1.0.0",
  "component_type": "team",
  "name": "weather_team",
  "participants": [
    {
      "component_type": "agent",
      "name": "writing_agent",
      "agent_type": "AssistantAgent",
      "system_message": "You are a helpful assistant. Solve tasks carefully. When done respond with TERMINATE",
      "model_client": {
        "component_type": "model",
        "model": "gpt-4o-2024-08-06",
        "model_type": "OpenAIChatCompletionClient"
      },
      "tools": [
        {
          "component_type": "tool",
          "name": "get_weather",
          "description": "Get the weather for a city",
          "content": "async def get_weather(city: str) -> str:\n    return f\"The weather in {city} is 73 degrees and Sunny.\"",
          "tool_type": "PythonFunction"
        }
      ]
    }
  ],
  "team_type": "RoundRobinGroupChat",
  "termination_condition": {
    "component_type": "termination",
    "termination_type": "CombinationTermination",
    "operator": "or",
    "conditions": [
      {
        "component_type": "termination",
        "termination_type": "TextMentionTermination",
        "text": "TERMINATE"
      },
      {
        "component_type": "termination",
        "termination_type": "MaxMessageTermination",
        "max_messages": 10
      }
    ]
  }
}
@victordibia victordibia changed the title Create an initial provider class for mapping declarative specs to agentchat specifications. Ideally this will be refactored to use a generic provider at some future time. Core behaviour would be to take in a declarative (json/yaml) spec and return an AgentChat team that can run. v1 for AGS Spec Provider Class Oct 31, 2024
@victordibia victordibia self-assigned this Oct 31, 2024
@victordibia victordibia added proj-studio Related to AutoGen Studio. size-small takes 1-2 days and removed needs-triage labels Oct 31, 2024
@victordibia victordibia added this to the 0.4.0 milestone Oct 31, 2024
@victordibia
Copy link
Collaborator Author

Completed in #4097

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proj-studio Related to AutoGen Studio. size-small takes 1-2 days
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant