This commit is contained in:
mudler
2024-04-07 20:23:22 +02:00
parent a4a2a172f5
commit 00078b5da8
2 changed files with 1 additions and 36 deletions

View File

@@ -126,7 +126,7 @@ func WithPeriodicRuns(duration string) Option {
return func(o *options) error {
t, err := time.ParseDuration(duration)
if err != nil {
o.periodicRuns, _ = time.ParseDuration("1m")
o.periodicRuns, _ = time.ParseDuration("10m")
}
o.periodicRuns = t
return nil

View File

@@ -21,41 +21,6 @@ type AgentConfig struct {
StateFile string `json:"state_file"`
CharacterFile string `json:"character_file"`
// This is what needs to be part of ActionsConfig
// WithLLMAPIURL(apiModel),
// WithModel(testModel),
// EnableHUD,
// DebugMode,
// EnableStandaloneJob,
// WithAgentReasoningCallback(func(state ActionCurrentState) bool {
// sseManager.Send(
// sse.NewMessage(
// fmt.Sprintf(`Thinking: %s`, htmlIfy(state.Reasoning)),
// ).WithEvent("status"),
// )
// return true
// }),
// WithActions(external.NewSearch(3)),
// WithAgentResultCallback(func(state ActionState) {
// text := fmt.Sprintf(`Reasoning: %s
// Action taken: %+v
// Parameters: %+v
// Result: %s`,
// state.Reasoning,
// state.ActionCurrentState.Action.Definition().Name,
// state.ActionCurrentState.Params,
// state.Result)
// sseManager.Send(
// sse.NewMessage(
// htmlIfy(
// text,
// ),
// ).WithEvent("status"),
// )
// }),
// WithRandomIdentity(),
// WithPeriodicRuns("10m"),
APIURL string `json:"api_url"`
Model string `json:"model"`
HUD bool `json:"hud"`