INNER CODE UNIT · Python
Agent
nottelabs/notte · packages/notte-agent/src/notte_agent/main.py:29
class Agent(BaseAgent):
def __init__(
self,
session: NotteSession,
vault: BaseVault | None = None,
persona: BasePersona | None = None,
notifier: BaseNotifier | None = None,
agent_type: AgentType = AgentType.FALCO,
trajectory: Trajectory | None = None,
**data: Unpack[AgentCreateRequestDict],
):
super().__init__(session=session)
# just validate the request to create type dependency
self.data: AgentCreateRequestDict = data
self.notifier: BaseNotifier | None = notifier
self.session: NotteSession = session
self.agent_type: AgentType = agent_type
self.trajectory: Trajectory | None = trajectory or session.trajectory.view()