Skip to content

Record tool call ID #165

@dannykopping

Description

@dannykopping

Capture the provider's tool call ID from the response when a tool result is submitted.
We'll use this ID to infer a relationship between two interceptions when the tool call result is received.

Note: this does not need to apply to injected tools since those all occur within the context of one interception anyway (inner agentic loop).

Acceptance criteria:

  • Tool call ID is determined from all interceptor implementations
    • Messages
      • blocking
      • streaming
    • Chat Completions
      • blocking
      • streaming
    • Responses
      • blocking
      • streaming
  • Recorder types updated
  • Tests added

See POC (intercept/messages/streaming.go)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions