feat: manually mirror opencoze's code from bytedance
Change-Id: I09a73aadda978ad9511264a756b2ce51f5761adf
This commit is contained in:
32
backend/api/model/crossdomain/agentrun/agent_run.go
Normal file
32
backend/api/model/crossdomain/agentrun/agent_run.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user