invoke_agent associé au nom du sous-agent et, éventuellement,
à son modèle.
Créé par weave.startSubagent() (ou turn.startAgent(), ou
llm.startAgent()) et terminé avec end().
Exemple
Table des matières
Propriétés
Méthodes
Propriétés
model
Readonly model: string
Défini dans
nom
Readonly nom: string
Défini dans
Méthodes
end
opts?): void
Ferme le span du SubAgent. Cette opération est idempotente. Passez error pour marquer le span comme ayant échoué.
Paramètres
| Nom | Type |
|---|---|
opts? | Object |
opts.error? | Error |
Renvoie
void
Défini dans
create
opts): SubAgent
Paramètres
| Nom | Type |
|---|---|
opts | SubAgentInit & ChildSpanContext |
Renvoie
SubAgent