agent-core
Route ROSA installation, model configuration, construction, invocation, streaming, history, and executor controls.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
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
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.