mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
added telemetry decorators to other chat clients (#255)
This commit is contained in:
committed by
GitHub
Unverified
parent
c794892d79
commit
dff700e469
@@ -29,6 +29,7 @@ from agent_framework import (
|
||||
)
|
||||
from agent_framework._clients import ai_function_to_json_schema_spec
|
||||
from agent_framework.exceptions import ServiceInitializationError
|
||||
from agent_framework.telemetry import use_telemetry
|
||||
from azure.ai.agents.models import (
|
||||
AgentsNamedToolChoice,
|
||||
AgentsNamedToolChoiceType,
|
||||
@@ -90,6 +91,7 @@ class FoundrySettings(AFBaseSettings):
|
||||
agent_name: str | None = "UnnamedAgent"
|
||||
|
||||
|
||||
@use_telemetry
|
||||
@use_tool_calling
|
||||
class FoundryChatClient(ChatClientBase):
|
||||
"""Azure AI Foundry Chat client."""
|
||||
|
||||
Reference in New Issue
Block a user