pub struct PublishEventRequest {Show 28 fields
pub id: Option<String>,
pub project_id: String,
pub session_id: Option<Option<String>>,
pub actor_id: Option<String>,
pub event_id: Option<String>,
pub event_type: Option<EventType>,
pub is_error: Option<bool>,
pub error: Option<Value>,
pub resource_name: Option<String>,
pub duration: Option<i32>,
pub input_tokens: Option<i32>,
pub output_tokens: Option<i32>,
pub timestamp: Option<DateTime<FixedOffset>>,
pub user_intent: Option<String>,
pub parameters: Option<Value>,
pub response: Option<Value>,
pub identify_actor_given_id: Option<String>,
pub identify_actor_name: Option<String>,
pub identify_data: Option<Value>,
pub tags: Option<HashMap<String, String>>,
pub properties: Option<Value>,
pub ip_address: Option<String>,
pub sdk_language: Option<String>,
pub agentcat_version: Option<String>,
pub server_name: Option<String>,
pub server_version: Option<String>,
pub client_name: Option<String>,
pub client_version: Option<String>,
}Fields§
§id: Option<String>ID of the event, typically auto-generated by the AgentCat Agent
project_id: StringID of the project this event belongs to
session_id: Option<Option<String>>ID of the session this event belongs to. Null for stateless mode (server assigns session).
actor_id: Option<String>Optional actor ID
event_id: Option<String>Optional custom event ID (must be unique)
event_type: Option<EventType>Type of event (e.g., mcp:tools/call, agentcat:identify)
is_error: Option<bool>Whether this event represents an error
error: Option<Value>Error details if is_error is true
resource_name: Option<String>Name of the resource accessed (for resource events)
duration: Option<i32>Duration of the operation in milliseconds
input_tokens: Option<i32>Token count of the request side as measured by the SDK. When absent, the server estimates it from the stored parameters.
output_tokens: Option<i32>Token count of the response side as measured by the SDK. When absent, the server estimates it from the stored response. Drives the oversized-tool-response rule.
timestamp: Option<DateTime<FixedOffset>>Agent-provided timestamp of when the event occurred
user_intent: Option<String>Captured explanation of why the actor made this request
parameters: Option<Value>Parameters sent with the request
response: Option<Value>Response data from the operation
identify_actor_given_id: Option<String>Actor ID for agentcat:identify events
identify_actor_name: Option<String>Actor name for agentcat:identify events
identify_data: Option<Value>Additional data for agentcat:identify events
Custom string key-value pairs. Keys: max 32 chars, alphanumeric/underscore/period/colon/dash/dollar-sign only. Values: max 200 chars, no newlines. Max 50 entries.
properties: Option<Value>Custom structured data. Keys are strings, values can be string, number, boolean, array, object, or null (null values are filtered out).
ip_address: Option<String>IP address of the client
sdk_language: Option<String>Programming language of the SDK used
agentcat_version: Option<String>Version of AgentCat being used
server_name: Option<String>Name of the MCP server
server_version: Option<String>Version of the MCP server
client_name: Option<String>Name of the MCP client
client_version: Option<String>Version of the MCP client