ai-agent-book 精选快照(<2MB 代码与文档,来自 github.com/bojieli/ai-agent-book)
Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,131 @@
|
||||
# Experience Learning Configuration for GAIA
|
||||
|
||||
# Learning Mode Settings
|
||||
learning:
|
||||
enabled: true # Enable learning from successful trajectories
|
||||
summarizer:
|
||||
model: "gpt-5.6-luna" # Model for summarizing trajectories
|
||||
temperature: 0.3 # Lower temperature for consistent summaries
|
||||
max_trajectory_steps: 100 # Maximum steps to include in summary
|
||||
|
||||
# Experience storage
|
||||
storage:
|
||||
path: "./learned_experiences.json"
|
||||
max_experiences: 1000 # Maximum experiences to store
|
||||
auto_save: true # Auto-save after each new experience
|
||||
|
||||
# Knowledge Base Settings
|
||||
knowledge_base:
|
||||
enabled: true # Enable knowledge base for retrieval
|
||||
preload_validation: true # Preload gaia-validation.jsonl on startup
|
||||
|
||||
# Index settings
|
||||
index:
|
||||
path: "./kb_index"
|
||||
embedding_model: "all-MiniLM-L6-v2" # Sentence transformer model
|
||||
embedding_dim: 384 # Dimension of embeddings
|
||||
|
||||
# Search settings
|
||||
search:
|
||||
top_k: 3 # Number of similar experiences to retrieve
|
||||
min_similarity: 0.3 # Minimum similarity threshold
|
||||
use_semantic: true # Use semantic search (vs keyword only)
|
||||
|
||||
# Experience Application Settings
|
||||
application:
|
||||
enabled: true # Apply experiences to new tasks
|
||||
|
||||
# How to incorporate experiences
|
||||
strategy: "prompt_enhancement" # Options: prompt_enhancement, context_injection
|
||||
|
||||
# Prompt enhancement settings
|
||||
prompt:
|
||||
max_experiences: 5 # Maximum experiences to include in prompt
|
||||
format: "detailed" # Options: detailed, summary, minimal
|
||||
|
||||
# Experience filtering
|
||||
filtering:
|
||||
by_level: true # Filter experiences by difficulty level
|
||||
by_tools: true # Filter by similar tools required
|
||||
recency_bias: 0.1 # Weight recent experiences higher (0-1)
|
||||
|
||||
# GAIA Dataset Settings
|
||||
dataset:
|
||||
validation_file: "gaia-validation.jsonl"
|
||||
dataset_path: "./AWorld/examples/gaia/GAIA"
|
||||
|
||||
# Processing settings
|
||||
batch_size: 10 # Process questions in batches
|
||||
timeout: 300 # Timeout per question (seconds)
|
||||
|
||||
# Evaluation settings
|
||||
evaluation:
|
||||
strict_matching: false # Use strict answer matching
|
||||
case_sensitive: false # Case-sensitive comparison
|
||||
|
||||
# Agent Settings
|
||||
agent:
|
||||
name: "gaia_experience_agent"
|
||||
|
||||
# LLM settings (can be overridden by environment variables)
|
||||
llm:
|
||||
provider: "openai" # Default provider
|
||||
model: "gpt-5.6-luna" # Default model
|
||||
temperature: 0.0 # Temperature for task execution
|
||||
max_tokens: 4096 # Maximum tokens per response
|
||||
|
||||
# Tool settings
|
||||
tools:
|
||||
enable_all: true # Enable all available tools
|
||||
timeout: 60 # Tool execution timeout (seconds)
|
||||
|
||||
# Memory settings
|
||||
memory:
|
||||
short_term_capacity: 20 # Short-term memory capacity
|
||||
enable_long_term: true # Enable long-term memory
|
||||
|
||||
# Logging Settings
|
||||
logging:
|
||||
level: "INFO" # Logging level: DEBUG, INFO, WARNING, ERROR
|
||||
file: "./logs/experience_agent.log"
|
||||
|
||||
# Detailed logging options
|
||||
log_trajectories: true # Log full trajectories
|
||||
log_summaries: true # Log generated summaries
|
||||
log_retrieval: true # Log retrieval results
|
||||
|
||||
# Experimental Features
|
||||
experimental:
|
||||
# Multi-agent collaboration
|
||||
multi_agent:
|
||||
enabled: false # Enable multi-agent mode
|
||||
share_experiences: false # Share experiences between agents
|
||||
|
||||
# Active learning
|
||||
active_learning:
|
||||
enabled: false # Request human feedback on uncertain cases
|
||||
uncertainty_threshold: 0.3 # Threshold for requesting feedback
|
||||
|
||||
# Experience evolution
|
||||
evolution:
|
||||
enabled: false # Allow experiences to evolve over time
|
||||
merge_similar: false # Merge similar experiences
|
||||
prune_outdated: false # Remove outdated experiences
|
||||
|
||||
# Performance Optimization
|
||||
optimization:
|
||||
# Caching
|
||||
cache:
|
||||
enabled: true # Enable caching
|
||||
embeddings: true # Cache embeddings
|
||||
llm_responses: false # Cache LLM responses
|
||||
|
||||
# Parallel processing
|
||||
parallel:
|
||||
enabled: false # Enable parallel processing
|
||||
max_workers: 4 # Maximum parallel workers
|
||||
|
||||
# Resource limits
|
||||
limits:
|
||||
max_memory_gb: 8 # Maximum memory usage
|
||||
max_cpu_percent: 80 # Maximum CPU usage
|
||||
Reference in New Issue
Block a user