mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
35c938fb5b
* Added Agent and AgentThread classes * Addressed PR feedback * Converted Agent to protocol * Removed thread deletion logic * Small update * Small updates to the Agent protocol
64 lines
1.3 KiB
Python
64 lines
1.3 KiB
Python
# Copyright (c) Microsoft. All rights reserved.
|
|
|
|
from . import __version__ # type: ignore[attr-defined]
|
|
from ._agents import Agent, AgentThread
|
|
from ._clients import ChatClient, EmbeddingGenerator
|
|
from ._logging import get_logger
|
|
from ._tools import AITool, ai_function
|
|
from ._types import (
|
|
AIContent,
|
|
AIContents,
|
|
ChatFinishReason,
|
|
ChatMessage,
|
|
ChatOptions,
|
|
ChatResponse,
|
|
ChatResponseUpdate,
|
|
ChatRole,
|
|
ChatToolMode,
|
|
DataContent,
|
|
ErrorContent,
|
|
FunctionCallContent,
|
|
FunctionResultContent,
|
|
GeneratedEmbeddings,
|
|
StructuredResponse,
|
|
TextContent,
|
|
TextReasoningContent,
|
|
UriContent,
|
|
UsageContent,
|
|
UsageDetails,
|
|
)
|
|
from .guard_rails import InputGuardrail, OutputGuardrail
|
|
|
|
__all__ = [
|
|
"AIContent",
|
|
"AIContents",
|
|
"AITool",
|
|
"Agent",
|
|
"AgentThread",
|
|
"ChatClient",
|
|
"ChatFinishReason",
|
|
"ChatMessage",
|
|
"ChatOptions",
|
|
"ChatResponse",
|
|
"ChatResponseUpdate",
|
|
"ChatRole",
|
|
"ChatToolMode",
|
|
"DataContent",
|
|
"EmbeddingGenerator",
|
|
"ErrorContent",
|
|
"FunctionCallContent",
|
|
"FunctionResultContent",
|
|
"GeneratedEmbeddings",
|
|
"InputGuardrail",
|
|
"OutputGuardrail",
|
|
"StructuredResponse",
|
|
"TextContent",
|
|
"TextReasoningContent",
|
|
"UriContent",
|
|
"UsageContent",
|
|
"UsageDetails",
|
|
"__version__",
|
|
"ai_function",
|
|
"get_logger",
|
|
]
|