effect-uai-basic-usage

Stream model turns, invoke tools, and aggregate outputs into a final answer.

30|4|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/betalyra/effect-uai --skill effect-uai-basic-usage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effect-uai-basic-usage
Source: https://github.com/betalyra/effect-uai/tree/main/skills/effect-uai-basic-usage
Command: npx skills add https://github.com/betalyra/effect-uai --skill effect-uai-basic-usage

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables building an end-to-end agent loop by streaming a model turn, executing tools when asked, and aggregating results into a final answer.

Core Features & Use Cases

  • Streaming turns: feed model turns one at a time to drive decisions.
  • Tool integration: automatically call tools when the model asks for them, and incorporate outputs into the history.
  • Multi-turn orchestration: loop until a final answer is produced, supporting reasoning and approvals as part of the policy.
  • Use Case: Build a chat-with-tools experience where the agent asks for data, calls a tool, and returns a composed result.

Quick Start

Stream a model turn, run any tools the model asks for, append the outputs, and continue until the model results in a final answer.

Frequently Asked Questions about effect-uai-basic-usage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an end-to-end agent loop that integrates tool calls?

To build an end-to-end agent loop, stream model turns one at a time, automatically invoke tools when the model requests them, and aggregate the outputs into a final answer. This handles multi-turn reasoning and tool integration within a deterministic workflow.

What is the best way to orchestrate multi-turn reasoning with external tools?

The best way to orchestrate multi-turn reasoning is to loop through streaming model turns and execute tools on demand. You append tool outputs to the state history and continue the loop until the model produces a final answer.

How does streaming model turns work in chat-with-tools scenarios?

Streaming model turns in chat-with-tools scenarios works by feeding model decisions one at a time. When the model asks for external actions, the system calls the requested tools, incorporates the outputs into the history, and continues until a final answer is reached.

Can I include approval steps within a deterministic agent workflow?

Yes, you can include approvals within a deterministic agent workflow. The system supports multi-turn orchestration, allowing you to apply reasoning and approval policies as the loop streams turns and invokes tools.

Does this approach separate wire format from policy logic in tool integration?

Yes, this approach separates wire format from policy logic in tool integration. It tracks state history and manages tool calls while allowing you to define the multi-turn reasoning and approval policies independently.

When do I need an agent loop for model responses and tool calls?

You need an agent loop for model responses when your chat experience requires external actions. It manages the cycle of streaming turns, invoking tools on demand, and aggregating results until the model returns a composed final answer.