opencode-cursor-agent/pkg/domain/entity/message.go

34 lines
593 B
Go

package entity
// Message represents a chat message
type Message struct {
Role string
Content interface{}
}
// Tool represents a tool definition
type Tool struct {
Type string
Function ToolFunction
}
// ToolFunction represents a tool function definition
type ToolFunction struct {
Name string
Description string
Parameters interface{}
}
// ToolCall represents a tool call result
type ToolCall struct {
ID string
Name string
Arguments string
}
// FunctionCall represents a function call
type FunctionCall struct {
Name string
Arguments string
}