Documentation
¶
Index ¶
- type CustomChatModel
- func (m *CustomChatModel) Generate(ctx context.Context, input []*schema.Message, opts ...model.Option) (*schema.Message, error)
- func (m *CustomChatModel) Stream(ctx context.Context, input []*schema.Message, opts ...model.Option) (*schema.StreamReader[*schema.Message], error)
- func (m *CustomChatModel) WithTools(tools []*schema.ToolInfo) (model.ToolCallingChatModel, error)
- type CustomRoundTripper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomChatModel ¶
type CustomChatModel struct {
// contains filtered or unexported fields
}
CustomChatModel wraps the eino-ext Claude model with custom tool schema handling
func NewCustomChatModel ¶
func NewCustomChatModel(ctx context.Context, config *einoclaude.Config) (*CustomChatModel, error)
NewCustomChatModel creates a new custom Anthropic chat model
func (*CustomChatModel) Generate ¶
func (m *CustomChatModel) Generate(ctx context.Context, input []*schema.Message, opts ...model.Option) (*schema.Message, error)
Generate implements the model.BaseChatModel interface
func (*CustomChatModel) Stream ¶
func (m *CustomChatModel) Stream(ctx context.Context, input []*schema.Message, opts ...model.Option) (*schema.StreamReader[*schema.Message], error)
Stream implements the model.BaseChatModel interface
func (*CustomChatModel) WithTools ¶
func (m *CustomChatModel) WithTools(tools []*schema.ToolInfo) (model.ToolCallingChatModel, error)
WithTools implements the model.ToolCallingChatModel interface
type CustomRoundTripper ¶
type CustomRoundTripper struct {
// contains filtered or unexported fields
}
CustomRoundTripper intercepts HTTP requests to fix Anthropic function schemas
Click to show internal directories.
Click to hide internal directories.