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
}
+1 -1
View File
@@ -23,7 +23,7 @@ type User struct {
type Team struct {
ID string `db:"id" json:"id"`
Label string `db:"label" json:"label"`
DefaultModelID *string `db:"default_model_id" json:"defaultModelId"`
DefaultAgentID *string `db:"default_agent_id" json:"defaultAgentId"`
DateCreated time.Time `db:"_date_created" json:"_dateCreated"`
DateUpdated *time.Time `db:"_date_updated" json:"_dateUpdated"`
VersionId string `db:"_version" json:"_version"`