Skip to content
Karyam

Agent Logs

Agent Logs provide complete visibility into how an Agent executes a request.

Every execution generates a sequence of structured events that allow teams to understand:

  • What happened
  • When it happened
  • Which tools were used
  • Whether approvals were requested
  • Whether execution was transferred to another agent
  • Why an execution failed

This makes AI systems observable, debuggable, and auditable.


A typical execution may look like this:

agent_start
↓
tool_call
↓
sub_prompt
↓
mcp_tool_call
↓
hitl_request
↓
agent_response
↓
agent_complete

Indicates the beginning of an agent execution.

Example:

agent_start
Agent: IT Support Assistant
Run ID: agent_01HABC123

Generated whenever the agent executes a built-in Skill.

Examples include:

  • PostgreSQL
  • Web Search
  • Email Send
  • Vector Search
  • SSH
  • Local Command

Example:

tool_call
Tool: PostgreSQL
Operation: Employee Lookup
Status: Success

Generated whenever an MCP Tool is executed.

Examples include:

  • GitHub Issue Creation
  • Jira Ticket Creation
  • Slack Notification
  • Internal API Access

Example:

mcp_tool_call
Server: GitHub MCP
Tool: Create Issue
Status: Success

Represents internal prompts generated by the agent during execution.

Sub-prompts are commonly used for:

  • Planning
  • Reasoning
  • Tool selection
  • Decision making

Example:

sub_prompt
Determine whether approval is required for VPN restoration.

Generated when the agent requires human approval before continuing execution.

Example:

hitl_request
Approval Type: Manager Approval
Status: Pending

Generated when execution is transferred to another agent.

Example:

agent_transfer
From: IT Support Assistant
To: Security Agent
Reason: Security policy validation required

Generated when the agent produces a response.

Example:

agent_response
VPN restoration requires manager approval.
An approval request has been sent.

Indicates successful completion of execution.

Example:

agent_complete
Status: Success
Duration: 8.2s

Generated when execution fails.

Examples include:

  • Tool failures
  • Authentication failures
  • Timeouts
  • Model errors
  • Invalid inputs

Example:

agent_error
Reason: GitHub MCP authentication failed

10:01:02 agent_start
10:01:03 tool_call
10:01:04 sub_prompt
10:01:05 mcp_tool_call
10:01:06 hitl_request
10:01:10 agent_response
10:01:11 agent_complete

10:01:02 agent_start
10:01:04 agent_transfer
10:01:05 agent_start
10:01:06 mcp_tool_call
10:01:08 agent_response
10:01:09 agent_complete

Agent Logs provide:

  • Execution visibility
  • Debugging capabilities
  • Auditability
  • Governance
  • Production observability

They transform AI systems from black boxes into transparent and manageable systems.


Continue with:

  • Workflow Logs
  • RAG Logs
  • Execution Traces
  • Token Usage
  • Cost Analytics