AiInvocationData
class AiInvocationData
| internal |
Properties
| Span|null | $activeChatSpan | ||
| int|null | $activeStep | ||
| bool | $hasStepMetadata | ||
| Span> | $spans |
Methods
__construct(Span $span, WeakReference $owner, AiInvocationMeta $meta, bool $isStreaming, AiConversation|null $conversation, bool $ownsConversation, bool $isNested, AiConversation|null $previousConversation)
Create the state owned by one agent invocation.
void
setConversationIdOnSpans(string $conversationId)
Apply a response's conversation ID to this invocation's own spans.
void
finishActiveChatSpan(SpanStatus|null $status = null)
Finish the current model step through its owning scope.
void
finish(SpanStatus $status)
Finish the invocation and any active model step.
Details
at line 30
__construct(Span $span, WeakReference $owner, AiInvocationMeta $meta, bool $isStreaming, AiConversation|null $conversation, bool $ownsConversation, bool $isNested, AiConversation|null $previousConversation)
Create the state owned by one agent invocation.
at line 45
void
setConversationIdOnSpans(string $conversationId)
Apply a response's conversation ID to this invocation's own spans.
at line 61
void
finishActiveChatSpan(SpanStatus|null $status = null)
Finish the current model step through its owning scope.
at line 77
void
finish(SpanStatus $status)
Finish the invocation and any active model step.