@@ -8,6 +8,7 @@ import { NodeTracerProvider } from "@opentelemetry/sdk-trace-node";
88import { AnthropicInstrumentation } from "@traceloop/instrumentation-anthropic" ;
99import { CohereInstrumentation } from "@traceloop/instrumentation-cohere" ;
1010import { OpenAIInstrumentation } from "@traceloop/instrumentation-openai" ;
11+ import { Agents } from "api/resources/agents/client/Client" ;
1112
1213import { HumanloopClient as BaseHumanloopClient } from "./Client" ;
1314import { ChatMessage } from "./api" ;
@@ -216,6 +217,7 @@ export class HumanloopClient extends BaseHumanloopClient {
216217 protected readonly _flows_overloaded : Flows ;
217218 protected readonly _tools_overloaded : Tools ;
218219 protected readonly _evaluators_overloaded : Evaluators ;
220+ protected readonly _agents_overloaded : Agents ;
219221 protected readonly instrumentProviders : {
220222 OpenAI ?: any ;
221223 Anthropic ?: any ;
@@ -276,6 +278,8 @@ export class HumanloopClient extends BaseHumanloopClient {
276278
277279 this . _evaluators_overloaded = overloadLog ( super . evaluators ) ;
278280
281+ this . _agents_overloaded = overloadLog ( super . agents ) ;
282+
279283 this . _evaluations = new ExtendedEvaluations ( _options , this ) ;
280284
281285 // Initialize the tracer singleton
@@ -571,6 +575,10 @@ ${RESET}`,
571575 return this . _evaluations ;
572576 }
573577
578+ public get agents ( ) : Agents {
579+ return this . _agents_overloaded ;
580+ }
581+
574582 public get prompts ( ) : Prompts {
575583 return this . _prompts_overloaded ;
576584 }
0 commit comments