Page cover

AI Generations in Agent Catalyst

Agent Catalyst integrates powerful AI models into workflows, enabling seamless text generation, structured data extraction, and reasoning tasks. This functionality empowers users to create dynamic, AI-driven processes tailored to their needs.


Text Generation

Text generation allows users to create various types of content, such as summaries, narratives, or creative texts, using large language models (LLMs).

Example: Generating a Scientific Abstract

yaml <GenText  
  as="abstract"  
  model="openai:gpt-4"  
  message="Based on the following research paper, create a concise and detailed scientific abstract summarizing the findings: {research}" />  

Attributes for <GenText />

Attribute

Type

Description

Required

as

string

Unique variable name to store the result.

model

string

AI provider and model name.

stream

boolean

Enables response streaming (default: true).

tools

array

List of tools the LLM can use.

options

object

LLM-specific options for fine-tuning.

The generated text is stored in the specified variable (e.g., abstract) and can be reused in later steps.


Structured Data Generation

Structured data generation ensures that AI outputs conform to specific formats, making it ideal for extracting reliable, programmatic data.

Example: Extracting Conference Speakers

Attributes for <GenObject />

Attribute

Type

Description

Required

as

string

Unique variable name to store the result.

model

string

AI provider and model name.

output

string

Type of output: object, array, enum, or no-schema.

schema

ZodType

Schema defining the data structure.

✅ (if output is object or array)

enum

array

List of possible values (if output is enum).

✅ (if output is enum)

schemaDescription

string

Additional guidance for the AI model.

tools

array

List of tools the LLM can use.

Schema Validation: Ensures the output adheres to the specified structure, making it reliable for automated workflows.


Example Workflow: Generate Tweets for Conference Speakers


AI Providers

Agent Catalyst supports multiple AI providers through integrations with SDKs like OpenAI, Anthropic, and Google. It also works with local open-source models using tools like Ollama.

Provider Configuration Example

Custom Provider Setup

For custom configurations, you can create provider instances:


Specifying Models

When using <GenText /> or <GenObject />, the model must be specified in the format providerId:modelId.

Example


Last updated