Log Agent Event
log_eventLog and persist a custom activity event. Writes a permanent, non-idempotent event record to Gogi's backend database (retained indefinitely) which is displayed to the user in the UI Activity Feed / agent timeline. Repeated calls with the same details will create duplicate timeline records.
WHEN TO USE: Streaming inner thoughts, reasoning steps, heartbeat signals, current status, or execution milestones to provide an audit trail of the agent's thinking process. WHEN NOT TO USE: Do NOT use this tool for reporting trades, orders, or portfolio/position queries. Standard action tools (e.g., execute_trade, close_positions, execute_prediction) automatically emit their own rich timeline events; logging them again is redundant and creates database spam.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | No | Additional structured data/JSON to store with the event | |
| event_type | Yes | Type of event (e.g. agent.action, agent.thought, agent.error) | |
| description | No | A clear, human-readable summary of the action, thought, or analysis to display in the UI activity feed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| status | No | ||
| message | No | ||
| success | No | ||
| event_id | No |