Introduction

Here’s a simple example of using a tool to fetch data from an API:

tools:
  - id: web_search
    use: compozy/tools:web-search
    config:
      api_key: "{{ env.SEARCH_API_KEY }}"

tasks:
  - id: search_docs
    use: tool(web_search)
    with:
      query: "Compozy documentation"
      max_results: 5

This tool can then be referenced using {{ tools.web_search.output }} in subsequent tasks.

Core Functionality

External Data Access

Connect with external APIs, databases, and services to access required data.

Complex Operations

Handle specific calculations and data processing tasks efficiently.

Extended Capabilities

Enable agents to perform actions beyond their built-in knowledge.

Consistent Operations

Ensure standardized handling of operations across tasks.

Key Points

Modular & Reusable

Create and share tools across different workflows and projects, promoting code reuse and maintainability.

Type Safety

Built-in schema validation ensures type safety and consistent data structures.

Extensible

Easily extend functionality by connecting with external services and APIs.

Language Agnostic

Write tools in TypeScript or Python, with consistent interfaces across languages.

Next Steps