Skip to content

Commit 0886aa3

Browse files
committed
Document CORS and concurrency env vars
1 parent be7661d commit 0886aa3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ pip install -e .
3939
- Optional tuning: `TEMPERATURE` (default `0.2`), `MAX_TOKENS` (default `1024`)
4040
- Tool plugins: `TOOLS_MODULES="your_pkg.tools,other_pkg.tools"` to load extra tools (see Tools below)
4141
- Traces location: `TRACES_DIR` (default `traces/`)
42+
- CORS (API): `MICRO_AGENT_CORS_ORIGINS` (default `*`), `MICRO_AGENT_CORS_CREDENTIALS` (default `0`)
4243
- Compiled demos (OpenAI planner): `COMPILED_DEMOS_PATH` (default `opt/plan_demos.json`)
44+
- Concurrency/usage isolation: `MICRO_AGENT_SERIALIZE` (default `1`), `MICRO_AGENT_USE_GLOBAL_TRACE` (default `1`)
4345

4446
Examples:
4547
```bash
@@ -51,6 +53,14 @@ export OPENAI_MODEL=gpt-4o-mini
5153
export LLM_PROVIDER=ollama
5254
export OLLAMA_MODEL=llama3.2:1b
5355
export OLLAMA_HOST=http://localhost:11434
56+
57+
# CORS (allow a specific origin and enable credentials)
58+
export MICRO_AGENT_CORS_ORIGINS="https://example.com"
59+
export MICRO_AGENT_CORS_CREDENTIALS=1
60+
61+
# Concurrency/usage isolation
62+
export MICRO_AGENT_SERIALIZE=0 # allow concurrent requests
63+
export MICRO_AGENT_USE_GLOBAL_TRACE=0 # disable shared trace usage
5464
```
5565

5666
## CLI

0 commit comments

Comments
 (0)