repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
Mirrored from https://github.com/yingqi-z20/Agent-libOS
stars
latest
clone command
git clone gitlawb://did:key:z6MkqRzA...RfoM/yingqi-z20-Agen...git clone gitlawb://did:key:z6MkqRzA.../yingqi-z20-Agen...d98dd2c9IPC1d ago| from __future__ import annotations |
| #2 |
| #3 | from typing import Any |
| #4 |
| #5 | from agent_libos.models import ToolSpec |
| #6 | from agent_libos.skills_tools.action_schema import ActionSchemaCompiler |
| #7 |
| #8 |
| #9 | def tool_spec_to_action_dict(spec: ToolSpec) -> dict[str, Any]: |
| #10 | action = ActionSchemaCompiler().from_tool_spec(spec) |
| #11 | return { |
| #12 | "name": action.name, |
| #13 | "use_cases": action.use_cases, |
| #14 | "input_schema": action.input_schema, |
| #15 | "output_schema": action.output_schema, |
| #16 | "required_capabilities": action.required_capabilities, |
| #17 | "side_effects": action.side_effects, |
| #18 | "failure_modes": action.failure_modes, |
| #19 | "examples": action.examples, |
| #20 | } |
| #21 |
| #22 |