Exports formatter classes for various AI providers, enabling consistent message formatting.
# Source: https://github.com/agentscope-ai/agentscope | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
# -*- coding: utf-8 -*-
"""The formatter module in agentscope."""
from ._formatter_base import FormatterBase
from ._dashscope_formatter import (
DashScopeChatFormatter,
DashScopeMultiAgentFormatter,
)
from ._anthropic_formatter import (
AnthropicChatFormatter,
AnthropicMultiAgentFormatter,
)
from ._openai_formatter import (
OpenAIChatFormatter,
OpenAIMultiAgentFormatter,
)
from ._gemini_formatter import (
GeminiChatFormatter,
GeminiMultiAgentFormatter,
)
from ._ollama_formatter import (
OllamaChatFormatter,
OllamaMultiAgentFormatter,
)
from
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key