计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
agent-core【效率与协作】Route ROSA installation, model configuration, construction, invocation, streaming, history, and executor controls.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
python -m pip install jpl-rosa in a Python
>=3.9,<4 environment.from rosa import ROSA, RobotSystemPrompts, ChatModel. The distribution is jpl-rosa; the import package is rosa.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.
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
ros_version=1 for ROS 1 or ros_version=2 for ROS 2; then follow
ros1-operations or
ros2-operations, respectively.invoke(query) for a complete synchronous string. Ordinary exceptions
are converted to an An error occurred: ... string; KeyboardInterrupt is
propagated.astream(query) only on an instance created with streaming=True, and
consume every event in order. Handle token, tool_start, tool_end,
final, and error event types.accumulate_chat_history=False for stateless calls and clear_chat() to
reset an existing conversation.show_token_usage is effective only for non-streaming OpenAI/Azure models;
it is automatically disabled for streaming and for other model classes.max_iterations, verbose, and return_intermediate_steps are executor
controls. The public invoke() result remains the output string even when
intermediate steps are requested.tools, tool_packages, blacklist, custom robot prompts, or extending
the tool registry, use tool-customization.