schema

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// Full path to the current directory.
	Dir string `json:"dir" validate:"required"`
}

type Function

type Function struct {
	// Name of the function to call.
	Name string `json:"name" validate:"required"`
	// Arguments to call the function with, as generated by the model in JSON format.
	Arguments string `json:"arguments" validate:"required"`
}

type Request

type Request struct {
	// Correlation ID of the tool call.
	CallID string `json:"call_id" validate:"required"`
	// The function that the model called.
	Function Function `json:"function" validate:"required"`
	// Context of the tool call request.
	Context Context `json:"context" validate:"required"`
}

type Response

type Response struct {
	// ID of the tool call that this message is responding to.
	CallID string `json:"call_id" validate:"required"`
	// The contents of the tool response.
	Content any `json:"content"`
}

Jump to

Keyboard shortcuts

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