feat: manually mirror opencoze's code from bytedance

Change-Id: I09a73aadda978ad9511264a756b2ce51f5761adf
This commit is contained in:
fanlv
2025-07-20 17:36:12 +08:00
commit 890153324f
14811 changed files with 1923430 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
package agentrun
type Tool struct {
PluginID int64 `json:"plugin_id"`
ToolID int64 `json:"tool_id"`
Arguments string `json:"arguments"`
ToolName string `json:"tool_name"`
Type ToolType `json:"type"`
}
type ToolType int32
const (
ToolTypePlugin ToolType = 2
ToolTypeWorkflow ToolType = 1
)
type ToolsRetriever struct {
PluginID int64
ToolName string
ToolID int64
Arguments string
Type ToolType
}
type Usage struct {
LlmPromptTokens int64 `json:"llm_prompt_tokens"`
LlmCompletionTokens int64 `json:"llm_completion_tokens"`
LlmTotalTokens int64 `json:"llm_total_tokens"`
WorkflowTokens *int64 `json:"workflow_tokens,omitempty"`
WorkflowCost *int64 `json:"workflow_cost,omitempty"`
}