Parameters

Running a post-hook is handled automatically during the Agent or Team run. These are the parameters that will be injected:
ParameterTypeDefaultDescription
agentAgentRequiredThe Agent that is running the post-hook. Only present in Agent runs.
teamTeamRequiredThe Team that is running the post-hook. Only present in Team runs.
run_outputRunOutput or TeamRunOutputRequiredThe output of the current Agent or Team run.
sessionAgentSessionRequiredThe AgentSession or TeamSession object representing the current session.
user_idOptional[str]NoneThe contextual user ID, if any.
debug_modeOptional[bool]NoneWhether the debug mode is enabled.