Skip to content

prompt.active_agent

View Markdown

A model prompt request made through ActiveAgent.

Source Active Agent Category LLM Fields 24 honeybadger-ruby

Fields

24
FieldTypeDescription
event_typestringAllowed value: prompt.active_agent.
providerstringModel provider name, e.g. "openai", "anthropic".
provider_modulestringActiveAgent provider module class name.
modelstringModel identifier, e.g. "gpt-4o", "claude-3-opus".
trace_idstringTrace ID for correlating events within a single agent run.
message_countintegerNumber of messages in the prompt context.
streambooleanWhether the response was streamed.
finish_reasonstringStop reason returned by the provider, e.g. "stop", "length".
response_modelstringModel identifier as returned by the provider response.
response_idstringProvider-assigned response ID.
temperaturenumberSampling temperature used.
max_tokensintegerMax tokens parameter.
top_pnumberTop-p nucleus sampling parameter.
tool_countintegerNumber of tools available to the model.
has_instructionsbooleanWhether a system instructions block was included.
usageobjectToken usage reported by the provider.
usage.input_tokensinteger
usage.output_tokensinteger
usage.total_tokensinteger
durationnumberDuration in milliseconds.
instrumenter_idstringActiveSupport::Notifications instrumenter UUID, added by the Honeybadger notification subscriber.
request_idstringRails request UUID, present on any event fired during a web request context. Set by the Honeybadger agent when available.
hostnamestringServer hostname. Attached to every event by default (events.attach_hostname).
environmentstringApplication environment, e.g. "production". Attached to every event by default (events.attach_environment).

Example

{
"event_type": "prompt.active_agent",
"provider": "openai",
"provider_module": "ActiveAgent::GenerationProvider::OpenAIProvider",
"model": "gpt-4o",
"trace_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"message_count": 4,
"stream": false,
"finish_reason": "stop",
"response_model": "gpt-4o-2024-08-06",
"response_id": "chatcmpl-Bx7Qk2T9fJ3aV1mN5pR8sLwY",
"temperature": 0.7,
"max_tokens": 1024,
"top_p": 1,
"tool_count": 3,
"has_instructions": true,
"usage": {
"input_tokens": 412,
"output_tokens": 186,
"total_tokens": 598
},
"duration": 1820.43,
"instrumenter_id": "d6a5b3f4c2e1908a7b6c",
"request_id": "0f5e4bb2-3c46-4b1c-91d5-2f4e8a6b9c01",
"hostname": "web-1.example.com",
"environment": "production"
}