Skip to content

Commit 93ff534

Browse files
update md
1 parent 9627d85 commit 93ff534

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

examples/toolkits/browser_skills_example/CAMEL_BROWSER_SKILLS.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ agent = SkillsAgent(
9090
skills_dir="./browser_skills", # Skill directory, defaults to ./browser_skills
9191
)
9292
await agent.initialize()
93-
result = await agent.run_task("Search for one-way flights from Beijing to Shanghai")
93+
result = await agent.run("Search for one-way flights from Beijing to Shanghai")
9494
```
9595

9696
### 2. Subtask Extractor (Task Agent)
@@ -498,7 +498,7 @@ async def main():
498498
skills_dir="./browser_skills", # Optional, defaults to ./browser_skills
499499
)
500500
await agent.initialize()
501-
result = await agent.run_task(
501+
result = await agent.run(
502502
"Search for one-way flights from Tokyo to Osaka on Feb 20"
503503
)
504504
print(result)
@@ -510,10 +510,11 @@ asyncio.run(main())
510510

511511
```bash
512512
# 1. First ensure task executes successfully and generates logs
513-
# 2. Run extraction script
514-
python subtask_extractor.py \
515-
--session-log ./session_logs/session_xxx \
516-
--output ./subtask_configs/new_subtasks.json
513+
# 2. Run extraction script (pass session folder path as argument)
514+
python subtask_extractor.py ./session_logs/session_xxx
515+
516+
# Optional: specify custom subtask_configs directory
517+
python subtask_extractor.py ./session_logs/session_xxx ./subtask_configs
517518
```
518519

519520
### 4. Convert Subtasks to Skills Format
@@ -524,7 +525,7 @@ python subtask_to_skill_converter.py --clean
524525

525526
### 5. Verify Skill Loading
526527

527-
```bash
528+
```bash``
528529
python skill_loader.py
529530
```
530531

0 commit comments

Comments
 (0)