agent-core
Route ROSA installation, model configuration, construction, invocation, streaming, history, and executor controls.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- agent-core
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Route ROSA installation, model configuration, construction, invocation, streaming, history, and executor controls.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md5.9 KB
- 参考文档references/llm-configuration.md4.2 KB
- 参考文档references/troubleshooting.md5.8 KB
- 参考文档references/workflows.md4.5 KB
03 SKILL.md 正文
ROSA agent core
Use this route when the task is to install or import the Python package, create a
ROSA agent, select a tool-calling LangChain chat model, invoke it, stream
events, reset conversation state, inspect token behavior, or bound iterations.
This route covers the agent lifecycle, not the detailed ROS tool catalog.
First checks
- Install the distribution with
python -m pip install jpl-rosain a Python>=3.9,<4environment. - Import the public API with
from rosa import ROSA, RobotSystemPrompts, ChatModel. The distribution isjpl-rosa; the import package isrosa. - Remember that pip installation does not install ROS middleware. ROSA construction loads the selected ROS 1 or ROS 2 tool family, so the matching ROS Python modules/runtime must be installed and sourced separately.
- Supply a LangChain chat model that supports tool calling. Do not run a live model or ROS system merely to inspect this skill.
For exact signatures and event shapes, read api-reference.md. Use workflows.md for sync/async lifecycle recipes and llm-configuration.md for provider setup. Start with troubleshooting.md when construction or execution fails.
Common lifecycle
install jpl-rosa -> import rosa -> configure tool-calling model
-> construct ROSA(ros_version=1 or 2, llm=...)
-> choose invoke() or astream()
-> inspect/clear chat_history as needed
- Choose
ros_version=1for ROS 1 orros_version=2for ROS 2; then follow ros1-operations or ros2-operations, respectively. - Use
invoke(query)for a complete synchronous string. Ordinary exceptions are converted to anAn error occurred: ...string;KeyboardInterruptis propagated. - Use
astream(query)only on an instance created withstreaming=True, and consume every event in order. Handletoken,tool_start,tool_end,final, anderrorevent types. - Chat history accumulates successful query/answer pairs by default. Use
accumulate_chat_history=Falsefor stateless calls andclear_chat()to reset an existing conversation. show_token_usageis effective only for non-streaming OpenAI/Azure models; it is automatically disabled for streaming and for other model classes.max_iterations,verbose, andreturn_intermediate_stepsare executor controls. The publicinvoke()result remains the output string even when intermediate steps are requested.
Route boundaries
- For ROS 1/ROS 2 graph inspection and actions, use the sibling routes above; do not invent entity names or bypass discovery.
- For
tools,tool_packages,blacklist, custom robot prompts, or extending the tool registry, use tool-customization. - For package-wide prerequisites and cross-cutting environment checks, return to the rosa root route.
- Keep credentials, model calls, ROS launches, Docker/TurtleSim, and destructive robot actions out of installation or documentation checks.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).