Agent par défaut

This commit is contained in:
fabien committed 2026-09-07 21:04:48 +02:00
1 parent cf10b9073b
commit f74e4d1043
24 files changed
+385 -37

No files matched your search

+41
View File
@@ -20,7 +20,48 @@ type LLMModel struct {
Detail *LLMModelDetail `json:"detail"`
}
type Message struct {
Role string
Content string
ToolCalls []ToolCall
ToolCallID string
//Reasoning *Reasoning
}
type Tool struct {
}
type ToolCall struct {
}
type Chunk struct {
Content string
}
type StreamParams struct {
Tools []*Tool
OnChunk func(chunk *Chunk)
OnDebug func()
}
type Role string
const (
RoleSystem Role = "system"
RoleUser Role = "user"
RoleAssistant Role = "assistant"
RoleTool Role = "tool"
)
type LLMEngine interface {
ListProviderTypes() []Item
ListModelsFromProvider(ctx context.Context, provider *Provider) ([]string, error)
Stream(
ctx context.Context,
provider *Provider,
modelID string,
params *StreamParams,
messages []*Message,
) error
}