service

package
v0.26.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AIRunConfigService

func AIRunConfigService() *aiRunConfigService

AIRunConfigService AI运行配置服务

func AIService

func AIService() *aiService

AIService 获取AI服务的单例实例 返回值:

  • *aiService: AI服务实例

func GetChatService

func GetChatService() *chatService

GetChatService 获取聊天服务的单例实例 返回值:

  • *chatService: 聊天服务实例

func GetPromptService

func GetPromptService() *promptService

GetPromptService 获取提示词服务的单例实例 返回值:

  • *promptService: 提示词服务实例

func MergeToolCalls

func MergeToolCalls(toolCalls []openai.ToolCall) []openai.ToolCall

MergeToolCalls 合并多个分段接收的 ToolCall 数据,生成完整的 ToolCall 切片。 适用于将流式返回的部分 ToolCall 信息按索引聚合为完整的调用记录。

返回合并后的 ToolCall 切片。

func RegisterAIAPI

func RegisterAIAPI()

RegisterAIAPI 将当前 AI 插件的实现注册到统一访问控制层。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL