team_session_id erorr
isikepalaku opened this issue · comments
im using agno 1.2.7
- When the team runs for the first time, the _initialize_member method dynamically adds a team_session_id attribute to each member Agent instance.
- When i start a second run in the playground within the same session, the playground likely calls the Team's deep_copy method to create a new instance for the run.
- The deep_copy process tries to copy all attributes, including the dynamically added team_session_id.
- Im using fast api to run this agent
this is my team code
import os
from datetime import datetime
from typing import List, Optional
from textwrap import dedent
from agno.agent import Agent
from agno.models.groq import Groq
from agno.models.google import Gemini
from agno.team import Team
from agno.tools.tavily import TavilyTools
from agno.tools.jina import JinaReaderTools
from agno.storage.postgres import PostgresStorage # Import storage
from db.session import db_url # Import db_url
from pydantic import BaseModel
# --- Define Response Model ---
class RecipeRecommendation(BaseModel):
"""Structure for a detailed recipe suggestion."""
recipe_summary: str
ingredients: List[str]
cooking_instructions: str
references: List[str]
variations: Optional[str] = None
# --- Define Specialized Agents ---
# Agent for Recipe Searching
web_recipe_searcher = Agent(
name="Web Recipe Searcher",
model=Groq(
id="qwen-2.5-32b",
api_key=os.getenv("GROQ_API_KEY"),
),
role="Searches for relevant recipes, cooking techniques, and culinary articles on the web.",
tools=[TavilyTools()],
description="Expert in finding cooking-related content across the internet.",
add_datetime_to_instructions=True,
)
# Agent for Reading Food Blogs / Recipe URLs
recipe_reader = Agent(
name="Recipe Reader",
tools=[JinaReaderTools()],
role="Reads and analyzes recipe URLs or blog articles to extract cooking steps and tips.",
description="Can understand and summarize content from recipe websites or documents.",
)
# --- Define the Coordination Team ---
def get_culinary_team(
user_id: Optional[str] = None,
session_id: Optional[str] = None,
debug_mode: bool = False,
) -> Team:
"""
Initializes and returns the coordinated team for culinary recipe assistance.
The team's team_id is set to 'ai-recipe-chef'.
"""
return Team(
team_id="ai-recipe-chef",
name="AI Culinary Team",
mode="coordinate",
model=Gemini(id="gemini-2.5-pro-exp-03-25"),
members=[web_recipe_searcher, recipe_reader],
user_id=user_id,
session_id=session_id,
storage=PostgresStorage(
table_name="ai_recipe_chef_team",
db_url=db_url,
mode="team",
auto_upgrade_schema=True,
),
description=dedent("""\
A coordinated AI culinary team that helps users find and understand recipes from various sources.
This team includes web recipe search specialists and recipe readers for analyzing cooking blogs.
Capabilities include: 👩🍳
- Discovering creative recipes
- Analyzing ingredients and instructions
- Understanding cooking variations and techniques
- Summarizing food articles
- Recommending alternative ingredients
- Coordinating recipe suggestions
"""),
instructions=[
"You are the coordinator of the AI Culinary Team.",
"Your primary task is to help users with cooking and recipe recommendations.",
"Use team members to gather relevant culinary content:",
" - Assign 'Web Recipe Searcher' to find interesting and related recipes on the internet.",
" - Assign 'Recipe Reader' to analyze and extract key information from recipe URLs or documents.",
"Collect and synthesize all information gathered by the team.",
"Perform in-depth analysis to suggest the best recipe variation or approach.",
"Present the final suggestion in the format of 'RecipeRecommendation'.",
"Ensure the output is well-structured, helpful, and aligned with the user's cooking goals.",
"If information is missing, instruct team members to explore further.",
],
response_model=RecipeRecommendation,
add_datetime_to_instructions=True,
show_tool_calls=True,
markdown=True,
debug_mode=debug_mode,
show_members_responses=True,
enable_agentic_context=True,
)and this is my error code when i run agent second time with same session id:
2025-04-04 10:37:45 DEBUG Continuing session: string
2025-04-04 10:37:45 Exception ignored in: <function SyncHttpxClientWrapper.__del__ at 0x7f2be42b3b00>
2025-04-04 10:37:45 Traceback (most recent call last):
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/groq/_base_client.py", line 770, in __del__
2025-04-04 10:37:45 if self.is_closed:
2025-04-04 10:37:45 ^^^^^^^^^^^^^^
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 228, in is_closed
2025-04-04 10:37:45 return self._state == ClientState.CLOSED
2025-04-04 10:37:45 ^^^^^^^^^^^
2025-04-04 10:37:45 AttributeError: 'SyncHttpxClientWrapper' object has no attribute '_state'
2025-04-04 10:37:45 Exception ignored in: <function SyncHttpxClientWrapper.__del__ at 0x7f2be42b3b00>
2025-04-04 10:37:45 Traceback (most recent call last):
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/groq/_base_client.py", line 770, in __del__
2025-04-04 10:37:45 if self.is_closed:
2025-04-04 10:37:45 ^^^^^^^^^^^^^^
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 228, in is_closed
2025-04-04 10:37:45 return self._state == ClientState.CLOSED
2025-04-04 10:37:45 ^^^^^^^^^^^
2025-04-04 10:37:45 AttributeError: 'SyncHttpxClientWrapper' object has no attribute '_state'
2025-04-04 10:37:45 INFO: 172.19.0.1:59028 - "POST /v1/playground/teams/penyidik-tipikor/runs HTTP/1.1" 500 Internal Server Error
2025-04-04 10:37:45 ERROR: Exception in ASGI application
2025-04-04 10:37:45 + Exception Group Traceback (most recent call last):
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/_utils.py", line 76, in collapse_excgroups
2025-04-04 10:37:45 | yield
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/middleware/base.py", line 174, in __call__
2025-04-04 10:37:45 | async with anyio.create_task_group() as task_group:
2025-04-04 10:37:45 | ^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 772, in __aexit__
2025-04-04 10:37:45 | raise BaseExceptionGroup(
2025-04-04 10:37:45 | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
2025-04-04 10:37:45 +-+---------------- 1 ----------------
2025-04-04 10:37:45 | Traceback (most recent call last):
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/uvicorn/protocols/http/httptools_impl.py", line 409, in run_asgi
2025-04-04 10:37:45 | result = await app( # type: ignore[func-returns-value]
2025-04-04 10:37:45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
2025-04-04 10:37:45 | return await self.app(scope, receive, send)
2025-04-04 10:37:45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in __call__
2025-04-04 10:37:45 | await super().__call__(scope, receive, send)
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/applications.py", line 112, in __call__
2025-04-04 10:37:45 | await self.middleware_stack(scope, receive, send)
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/middleware/errors.py", line 187, in __call__
2025-04-04 10:37:45 | raise exc
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/middleware/errors.py", line 165, in __call__
2025-04-04 10:37:45 | await self.app(scope, receive, _send)
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/middleware/base.py", line 173, in __call__
2025-04-04 10:37:45 | with recv_stream, send_stream, collapse_excgroups():
2025-04-04 10:37:45 | ^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
2025-04-04 10:37:45 | self.gen.throw(value)
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
2025-04-04 10:37:45 | raise exc
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/middleware/base.py", line 175, in __call__
2025-04-04 10:37:45 | response = await self.dispatch_func(request, call_next)
2025-04-04 10:37:45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 | File "/app/api/main.py", line 47, in max_body_size
2025-04-04 10:37:45 | return await call_next(request)
2025-04-04 10:37:45 | ^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/middleware/base.py", line 153, in call_next
2025-04-04 10:37:45 | raise app_exc
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/middleware/base.py", line 140, in coro
2025-04-04 10:37:45 | await self.app(scope, receive_or_disconnect, send_no_error)
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/middleware/cors.py", line 93, in __call__
2025-04-04 10:37:45 | await self.simple_response(scope, receive, send, request_headers=headers)
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/middleware/cors.py", line 144, in simple_response
2025-04-04 10:37:45 | await self.app(scope, receive, send)
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
2025-04-04 10:37:45 | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
2025-04-04 10:37:45 | raise exc
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2025-04-04 10:37:45 | await app(scope, receive, sender)
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 714, in __call__
2025-04-04 10:37:45 | await self.middleware_stack(scope, receive, send)
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 734, in app
2025-04-04 10:37:45 | await route.handle(scope, receive, send)
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 288, in handle
2025-04-04 10:37:45 | await self.app(scope, receive, send)
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 76, in app
2025-04-04 10:37:45 | await wrap_app_handling_exceptions(app, request)(scope, receive, send)
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
2025-04-04 10:37:45 | raise exc
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2025-04-04 10:37:45 | await app(scope, receive, sender)
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 73, in app
2025-04-04 10:37:45 | response = await f(request)
2025-04-04 10:37:45 | ^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/fastapi/routing.py", line 301, in app
2025-04-04 10:37:45 | raw_response = await run_endpoint_function(
2025-04-04 10:37:45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/fastapi/routing.py", line 214, in run_endpoint_function
2025-04-04 10:37:45 | return await run_in_threadpool(dependant.call, **values)
2025-04-04 10:37:45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/starlette/concurrency.py", line 37, in run_in_threadpool
2025-04-04 10:37:45 | return await anyio.to_thread.run_sync(func)
2025-04-04 10:37:45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/anyio/to_thread.py", line 56, in run_sync
2025-04-04 10:37:45 | return await get_async_backend().run_sync_in_worker_thread(
2025-04-04 10:37:45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 2470, in run_sync_in_worker_thread
2025-04-04 10:37:45 | return await future
2025-04-04 10:37:45 | ^^^^^^^^^^^^
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 967, in run
2025-04-04 10:37:45 | result = context.run(func, *args)
2025-04-04 10:37:45 | ^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/agno/playground/sync_router.py", line 584, in create_team_run
2025-04-04 10:37:45 | new_team_instance = team.deep_copy(update={"team_id": team_id, "session_id": session_id})
2025-04-04 10:37:45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/agno/team/team.py", line 5221, in deep_copy
2025-04-04 10:37:45 | copied_attributes[field_name] = self._deep_copy_field(field_name, field_value)
2025-04-04 10:37:45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/agno/team/team.py", line 5248, in _deep_copy_field
2025-04-04 10:37:45 | return [member.deep_copy() for member in field_value]
2025-04-04 10:37:45 | ^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 | File "/usr/local/lib/python3.12/site-packages/agno/agent/agent.py", line 2584, in deep_copy
2025-04-04 10:37:45 | new_agent = self.__class__(**fields_for_new_agent)
2025-04-04 10:37:45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 | TypeError: Agent.__init__() got an unexpected keyword argument 'team_session_id'
2025-04-04 10:37:45 +------------------------------------
2025-04-04 10:37:45
2025-04-04 10:37:45 During handling of the above exception, another exception occurred:
2025-04-04 10:37:45
2025-04-04 10:37:45 Traceback (most recent call last):
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/uvicorn/protocols/http/httptools_impl.py", line 409, in run_asgi
2025-04-04 10:37:45 result = await app( # type: ignore[func-returns-value]
2025-04-04 10:37:45 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
2025-04-04 10:37:45 return await self.app(scope, receive, send)
2025-04-04 10:37:45 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in __call__
2025-04-04 10:37:45 await super().__call__(scope, receive, send)
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/applications.py", line 112, in __call__
2025-04-04 10:37:45 await self.middleware_stack(scope, receive, send)
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/middleware/errors.py", line 187, in __call__
2025-04-04 10:37:45 raise exc
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/middleware/errors.py", line 165, in __call__
2025-04-04 10:37:45 await self.app(scope, receive, _send)
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/middleware/base.py", line 173, in __call__
2025-04-04 10:37:45 with recv_stream, send_stream, collapse_excgroups():
2025-04-04 10:37:45 ^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
2025-04-04 10:37:45 self.gen.throw(value)
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
2025-04-04 10:37:45 raise exc
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/middleware/base.py", line 175, in __call__
2025-04-04 10:37:45 response = await self.dispatch_func(request, call_next)
2025-04-04 10:37:45 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 File "/app/api/main.py", line 47, in max_body_size
2025-04-04 10:37:45 return await call_next(request)
2025-04-04 10:37:45 ^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/middleware/base.py", line 153, in call_next
2025-04-04 10:37:45 raise app_exc
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/middleware/base.py", line 140, in coro
2025-04-04 10:37:45 await self.app(scope, receive_or_disconnect, send_no_error)
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/middleware/cors.py", line 93, in __call__
2025-04-04 10:37:45 await self.simple_response(scope, receive, send, request_headers=headers)
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/middleware/cors.py", line 144, in simple_response
2025-04-04 10:37:45 await self.app(scope, receive, send)
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
2025-04-04 10:37:45 await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
2025-04-04 10:37:45 raise exc
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2025-04-04 10:37:45 await app(scope, receive, sender)
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 714, in __call__
2025-04-04 10:37:45 await self.middleware_stack(scope, receive, send)
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 734, in app
2025-04-04 10:37:45 await route.handle(scope, receive, send)
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 288, in handle
2025-04-04 10:37:45 await self.app(scope, receive, send)
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 76, in app
2025-04-04 10:37:45 await wrap_app_handling_exceptions(app, request)(scope, receive, send)
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
2025-04-04 10:37:45 raise exc
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2025-04-04 10:37:45 await app(scope, receive, sender)
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 73, in app
2025-04-04 10:37:45 response = await f(request)
2025-04-04 10:37:45 ^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/fastapi/routing.py", line 301, in app
2025-04-04 10:37:45 raw_response = await run_endpoint_function(
2025-04-04 10:37:45 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/fastapi/routing.py", line 214, in run_endpoint_function
2025-04-04 10:37:45 return await run_in_threadpool(dependant.call, **values)
2025-04-04 10:37:45 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/starlette/concurrency.py", line 37, in run_in_threadpool
2025-04-04 10:37:45 return await anyio.to_thread.run_sync(func)
2025-04-04 10:37:45 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/anyio/to_thread.py", line 56, in run_sync
2025-04-04 10:37:45 return await get_async_backend().run_sync_in_worker_thread(
2025-04-04 10:37:45 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 2470, in run_sync_in_worker_thread
2025-04-04 10:37:45 return await future
2025-04-04 10:37:45 ^^^^^^^^^^^^
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 967, in run
2025-04-04 10:37:45 result = context.run(func, *args)
2025-04-04 10:37:45 ^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/agno/playground/sync_router.py", line 584, in create_team_run
2025-04-04 10:37:45 new_team_instance = team.deep_copy(update={"team_id": team_id, "session_id": session_id})
2025-04-04 10:37:45 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/agno/team/team.py", line 5221, in deep_copy
2025-04-04 10:37:45 copied_attributes[field_name] = self._deep_copy_field(field_name, field_value)
2025-04-04 10:37:45 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/agno/team/team.py", line 5248, in _deep_copy_field
2025-04-04 10:37:45 return [member.deep_copy() for member in field_value]
2025-04-04 10:37:45 ^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 File "/usr/local/lib/python3.12/site-packages/agno/agent/agent.py", line 2584, in deep_copy
2025-04-04 10:37:45 new_agent = self.__class__(**fields_for_new_agent)
2025-04-04 10:37:45 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-04 10:37:45 TypeError: Agent.__init__() got an unexpected keyword argument 'team_session_id'thanks for any help