You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clan(
clan_name: str, # Team name (required)manager: Agent, # Coordinating agent (required)members: list[Agent], # All agents including manager (required)shared_instruction: str, # Instructions for all agents (required)goal: str, # The task to accomplish (required)history_folder: str="history", # History directoryoutput_file: str=None, # Save final result to file
)
Methods
unleash()
Plan the work and hand execution to the manager.
clan.unleash()
Built-in Functions (available inside clans)
Function
Available To
Description
send_message(agent_name, message)
All agents
Send a task to another agent
ask_user(question)
Manager only
Ask user a clarifying question
Tool System
@tool Decorator
fromunisonai.tools.toolimporttool@tool(name="my_tool", description="What it does")defmy_tool(param: str) ->str:
returnf"Result: {param}"# Instantiate for use with Agentagent=Agent(..., tools=[my_tool()])
llm=Gemini(
model="gemini-2.5-flash", # Model nametemperature=0.0, # Creativity (0.0–1.0)max_tokens=2048, # Max response lengthapi_key="your-key", # API key (or use env var)
)
Custom LLM
fromunisonai.llms.BasellmimportBaseLLMclassMyLLM(BaseLLM):
defrun(self, prompt: str, save_messages: bool=True) ->str:
# Your API call here
...
defreset(self):
self.messages= []