# topogpt3: tasks

topogpt3: tasks groups 7 files (py) around pre_processing_chat, post_processing_chat, _fmt_tool_defs, _tool_calls_text, apply_chat_template. Generic task eval: JSONL cases + safe verifiers.

```mermaid
graph LR
    eval["eval"]
    tests["tests"]
    topogpt3["topogpt3"]
    eval -- "calls into" --> topogpt3
    tests -- "calls into" --> eval
    tests -- "calls into" --> topogpt3
```

## eval (4.1)

eval groups 1 files (py) around _extract_code, _extract_json, verify_tool_call, verify_json, verify_regex. Generic task eval: JSONL cases + safe verifiers.

## tests (4.2)

tests groups 2 files (py) around _gen, test_apt_chain_cases_full_pass, test_regex_verifier, test_tool_call_verifier_rejects_wrong_target, _call. Generic task eval tests (no model load).

## topogpt3 (4.3)

topogpt3 groups 4 files (py) around pre_processing_chat, post_processing_chat, _fmt_tool_defs, _tool_calls_text, apply_chat_template. Chat template + special tokens for TopoGPT3.

**Files**:

- eval/tasks.py
- tests/test_eval_tasks.py
- tests/test_fallback.py
- topogpt3/chat.py
- topogpt3/eval_toolcall.py
- topogpt3/fallback.py
- topogpt3/tools_agent.py
