Skip to content

## DAY 19 — Native LLM tool calling#22

Merged
evkir merged 4 commits into
mainfrom
feat/llm-tools-native
Jun 9, 2026
Merged

## DAY 19 — Native LLM tool calling#22
evkir merged 4 commits into
mainfrom
feat/llm-tools-native

Conversation

@evkir

@evkir evkir commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Day 19 — Native LLM tool calling

  • _tools_to_openai_format / _tools_to_anthropic_format — конвертеры Tool → provider spec
  • Tool.input_schema — опциональная JSON Schema (params выражает только flat-string args)
  • call_tools() -> LLMResponse (ToolCall/LLMResponse dataclass) для OpenAI+Anthropic; Ollama не поддерживает
  • format_assistant_tool_turn / format_tool_results — provider-aware threading tool_use↔tool_result
  • ExploitAgent: флаг-gated native chain building (use_native_tools, default False — старый детерминированный путь нетронут); _exec_native_tool резолвит model cve_id → реальные CVE из ranked_cves
  • 13 тестов (конвертеры, executor, full mocked loop)

307 tests green.

@evkir evkir merged commit 0c79dbb into main Jun 9, 2026
5 checks passed
@evkir evkir deleted the feat/llm-tools-native branch June 9, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant