Versions in this module Expand all Collapse all v0 v0.0.1 Jul 10, 2026 v0.0.0 Jul 10, 2026 Changes in this version + func SeparateTools(tools []Tool) (builtinTools []coreTypes.ActionDefinition, ...) + type Content struct + Items *[]ContentItem + Text *string + func (c *Content) GetItems() []ContentItem + func (c *Content) GetText() string + func (c *Content) IsItems() bool + func (c *Content) IsText() bool + func (c *Content) MarshalJSON() ([]byte, error) + func (c *Content) UnmarshalJSON(data []byte) error + type ContentItem struct + ImageURL string + Text string + Type string + type FormatConfig struct + Type string + type FunctionToolCall struct + Arguments string + CallID string + ID string + Name string + Status string + Type string + type Input struct + Messages *[]Message + Text *string + func (i *Input) GetMessages() []Message + func (i *Input) GetText() string + func (i *Input) IsMessages() bool + func (i *Input) IsText() bool + func (i *Input) MarshalJSON() ([]byte, error) + func (i *Input) UnmarshalJSON(data []byte) error + type InputMessage struct + Content Content + Role string + type Message struct + Arguments *string + CallId *string + Content *Content + ID *string + Name *string + Output *string + Role *string + Status *string + Type string + func (m *Message) IsFunctionCall() bool + func (m *Message) IsFunctionCallOutput() bool + func (m *Message) IsInputMessage() bool + func (m *Message) IsValidFunctionCallOutput() (bool, error) + func (m *Message) IsWebSearchCall() bool + func (m *Message) ToInputMessage() *InputMessage + type MessageContentItem struct + Annotations []interface{} + Text string + Type string + type ReasoningConfig struct + Effort *string + Summary *string + type RequestBody struct + Include []string + Input Input + Instructions *string + MaxOutputTokens *int + Metadata map[string]string + Model string + ParallelToolCalls *bool + PreviousResponseID *string + Reasoning *ReasoningConfig + Store *bool + Stream *bool + Temperature *float64 + Text *TextConfig + ToolChoice json.RawMessage + Tools []Tool + TopP *float64 + Truncation *string + func (r *RequestBody) SetInputByType() + func (r *RequestBody) ToChatCompletionMessages() []openai.ChatCompletionMessage + type ResponseBody struct + CreatedAt int64 + Error interface{} + ID string + IncompleteDetails interface{} + Instructions interface{} + MaxOutputTokens interface{} + Metadata map[string]interface{} + Model string + Object string + Output []interface{} + ParallelToolCalls bool + PreviousResponseID interface{} + Reasoning ReasoningConfig + Status string + Store bool + Temperature float64 + Text TextConfig + ToolChoice string + Tools []Tool + TopP float64 + Truncation string + Usage UsageInfo + User interface{} + type ResponseMessage struct + Content []MessageContentItem + ID string + Role string + Status string + Type string + type TextConfig struct + Format *FormatConfig + type TokenDetails struct + CachedTokens int + ReasoningTokens int + type Tool struct + Description *string + Name *string + Parameters *jsonschema.Definition + SearchContextSize *string + Strict *bool + Type string + UserLocation *UserLocation + func (t *Tool) IsFunction() bool + func (t *Tool) IsWebSearch() bool + func (t *Tool) ToActionDefinition() *coreTypes.ActionDefinition + type ToolChoice struct + Name string + Type string + type UsageInfo struct + InputTokens int + InputTokensDetails TokenDetails + OutputTokens int + OutputTokensDetails TokenDetails + TotalTokens int + type UserLocation struct + City *string + Country *string + Region *string + Timezone *string + Type string