Agents
The Agent() class wraps an LLM provider, a list of tools, and a ReAct loop. It is the core unit of execution in Synapse.
Creating an agent
from synapse import Agent, AnthropicProvider
agent = Agent(provider=AnthropicProvider(model="claude-sonnet-4-6"), tools=[...])
from synapse import Agent, AnthropicProvider
agent = Agent(provider=AnthropicProvider(model="claude-sonnet-4-6"), tools=[...])
Running an agent
agent.run() returns a result object containing the final answer, the full trajectory, and signal scores.