{"templates":[{"activity_name":"litellm_chat","display_name":"LiteLLM Chat","description":"Sends a chat completion request via LiteLLM, supporting multiple providers (OpenAI, Anthropic, Cohere, etc.) through a unified API.","category":"ai_models","parameters":[{"name":"model","type":"model_id","description":"Model identifier (e.g., 'gpt-4', 'claude-3-opus', 'gemini-pro')","required":true,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["gpt-4","gpt-4-turbo","claude-3-opus-20240229","gemini-pro"],"validation":null,"ui_hints":{"model_mode":"chat"}},{"name":"prompt","type":"string","description":"User prompt or message","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"prompt_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":{"multiline":true}},{"name":"system_prompt","type":"string","description":"System prompt to set context/behavior","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"system_prompt_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":{"multiline":true}},{"name":"messages","type":"array","description":"Full message history (alternative to prompt)","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"messages_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"temperature","type":"float","description":"Sampling temperature (0-2)","required":false,"default":1.0,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0,"max":2},"ui_hints":null},{"name":"max_tokens","type":"integer","description":"Maximum tokens to generate","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":128000},"ui_hints":null},{"name":"top_p","type":"float","description":"Nucleus sampling parameter","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0,"max":1},"ui_hints":null},{"name":"stop","type":"array","description":"Stop sequences","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":"string","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"response_format","type":"object","description":"Response format specification (e.g., JSON mode)","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"text","type":"string","description":"Generated text response","always_present":true,"example":null},{"name":"usage","type":"object","description":"Token usage statistics","always_present":true,"example":null},{"name":"model","type":"string","description":"Model used for generation","always_present":true,"example":null},{"name":"finish_reason","type":"string","description":"Reason generation stopped","always_present":true,"example":null}],"required_api_keys":[{"key_name":"OPENAI_API_KEY","provider":"OpenAI","required":false,"description":"Required for OpenAI models"},{"key_name":"ANTHROPIC_API_KEY","provider":"Anthropic","required":false,"description":"Required for Claude models"}],"minimal_example":{"activity":"litellm_chat","model":"gpt-4","prompt":"What is the capital of France?"},"full_example":{"activity":"litellm_chat","model":"gpt-4-turbo","prompt_path":"init_params.user_question","system_prompt":"You are a helpful assistant that provides concise answers.","temperature":0.7,"max_tokens":1000,"top_p":0.9},"documentation_url":null,"tags":["ai-models","llm","chat","litellm","openai","anthropic"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"litellm_vision","display_name":"LiteLLM Vision","description":"Analyzes images using vision-capable LLMs. Supports both image URLs and base64-encoded images.","category":"ai_models","parameters":[{"name":"model","type":"model_id","description":"Vision-capable model identifier","required":true,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["gpt-4-vision-preview","gpt-4o","claude-3-opus-20240229"],"validation":null,"ui_hints":{"model_mode":"chat"}},{"name":"prompt","type":"string","description":"Question or instruction about the image","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"prompt_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"image_url","type":"url","description":"URL of the image to analyze","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"image_url_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"image_path","type":"file_path","description":"Storage path to the image file","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"image_path_expr","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"detail","type":"enum","description":"Image detail level for analysis","required":false,"default":"auto","supports_path_expression":false,"path_suffix_name":null,"enum_values":["auto","low","high"],"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"temperature","type":"float","description":"Sampling temperature","required":false,"default":0.7,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0,"max":2},"ui_hints":null},{"name":"max_tokens","type":"integer","description":"Maximum tokens to generate","required":false,"default":1000,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":4096},"ui_hints":null}],"outputs":[{"name":"text","type":"string","description":"Analysis or description of the image","always_present":true,"example":null},{"name":"usage","type":"object","description":"Token usage including image tokens","always_present":true,"example":null}],"required_api_keys":[{"key_name":"OPENAI_API_KEY","provider":"OpenAI","required":false,"description":"Required for GPT-4 Vision models"}],"minimal_example":{"activity":"litellm_vision","model":"gpt-4o","prompt":"What is in this image?","image_url":"https://example.com/image.jpg"},"full_example":{"activity":"litellm_vision","model":"gpt-4o","prompt":"Describe this image in detail, including any text visible.","image_path_expr":"download_step.outputs.storage_path","detail":"high","temperature":0.5,"max_tokens":2000},"documentation_url":null,"tags":["ai-models","vision","image-analysis","litellm","multimodal"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"litellm_embeddings","display_name":"LiteLLM Embeddings","description":"Generates text embeddings using various embedding models through LiteLLM.","category":"ai_models","parameters":[{"name":"model","type":"model_id","description":"Embedding model identifier","required":false,"default":"text-embedding-ada-002","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["text-embedding-ada-002","text-embedding-3-small","text-embedding-3-large"],"validation":null,"ui_hints":{"model_mode":"embedding"}},{"name":"input","type":"string","description":"Text to embed (single string)","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"input_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"inputs","type":"array","description":"Multiple texts to embed (array of strings)","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"inputs_path","enum_values":null,"array_item_type":"string","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"dimensions","type":"integer","description":"Output embedding dimensions (for models that support it)","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":3072},"ui_hints":null}],"outputs":[{"name":"embedding","type":"array","description":"Embedding vector (for single input)","always_present":true,"example":null},{"name":"embeddings","type":"array","description":"Array of embedding vectors (for multiple inputs)","always_present":true,"example":null},{"name":"usage","type":"object","description":"Token usage statistics","always_present":true,"example":null},{"name":"dimensions","type":"integer","description":"Dimensions of the embedding vectors","always_present":true,"example":null}],"required_api_keys":[{"key_name":"OPENAI_API_KEY","provider":"OpenAI","required":true,"description":"Required for OpenAI embedding models"}],"minimal_example":{"activity":"litellm_embeddings","input":"The quick brown fox jumps over the lazy dog."},"full_example":{"activity":"litellm_embeddings","model":"text-embedding-3-large","inputs_path":"split_text.outputs.parts","dimensions":1536},"documentation_url":null,"tags":["ai-models","embeddings","litellm","semantic","vectors"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"litellm_image_generation","display_name":"LiteLLM Image Generation","description":"Generates images from text prompts using DALL-E or compatible image generation models.","category":"ai_models","parameters":[{"name":"model","type":"model_id","description":"Image generation model","required":false,"default":"dall-e-3","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["dall-e-2","dall-e-3"],"validation":null,"ui_hints":{"model_mode":"image_generation"}},{"name":"prompt","type":"string","description":"Text description of the image to generate","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"prompt_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":{"multiline":true}},{"name":"size","type":"enum","description":"Image dimensions","required":false,"default":"1024x1024","supports_path_expression":false,"path_suffix_name":null,"enum_values":["256x256","512x512","1024x1024","1792x1024","1024x1792"],"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"quality","type":"enum","description":"Image quality (DALL-E 3 only)","required":false,"default":"standard","supports_path_expression":false,"path_suffix_name":null,"enum_values":["standard","hd"],"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"style","type":"enum","description":"Image style (DALL-E 3 only)","required":false,"default":"vivid","supports_path_expression":false,"path_suffix_name":null,"enum_values":["vivid","natural"],"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"n","type":"integer","description":"Number of images to generate","required":false,"default":1,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":10},"ui_hints":null}],"outputs":[{"name":"image_url","type":"url","description":"URL of the generated image","always_present":true,"example":null},{"name":"image_urls","type":"array","description":"URLs of all generated images","always_present":true,"example":null},{"name":"revised_prompt","type":"string","description":"The prompt as revised by the model (DALL-E 3)","always_present":true,"example":null},{"name":"storage_path","type":"file_path","description":"Path where image was saved to storage","always_present":false,"example":null}],"required_api_keys":[{"key_name":"OPENAI_API_KEY","provider":"OpenAI","required":true,"description":"Required for DALL-E image generation"}],"minimal_example":{"activity":"litellm_image_generation","prompt":"A serene mountain landscape at sunset"},"full_example":{"activity":"litellm_image_generation","model":"dall-e-3","prompt":"A photorealistic image of a futuristic city with flying cars and neon lights","size":"1792x1024","quality":"hd","style":"vivid","n":1},"documentation_url":null,"tags":["ai-models","image-generation","dalle","litellm","creative"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"litellm_function_call","display_name":"LiteLLM Function Call","description":"Executes chat completions with function/tool calling capabilities. The model can invoke defined functions to perform actions.","category":"ai_models","parameters":[{"name":"model","type":"model_id","description":"Function-calling capable model","required":true,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["gpt-4-turbo","gpt-4o","claude-3-opus-20240229"],"validation":null,"ui_hints":{"model_mode":"chat"}},{"name":"prompt","type":"string","description":"User prompt","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"prompt_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"tools","type":"array","description":"Array of tool/function definitions","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"tools_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"tool_choice","type":"string","description":"Tool selection mode ('auto', 'none', or specific tool name)","required":false,"default":"auto","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"temperature","type":"float","description":"Sampling temperature","required":false,"default":0.7,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0,"max":2},"ui_hints":null},{"name":"max_tokens","type":"integer","description":"Maximum tokens to generate","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":128000},"ui_hints":null}],"outputs":[{"name":"text","type":"string","description":"Text response (if no function called)","always_present":true,"example":null},{"name":"tool_calls","type":"array","description":"Array of tool calls made by the model","always_present":true,"example":null},{"name":"function_name","type":"string","description":"Name of the called function","always_present":false,"example":null},{"name":"function_arguments","type":"object","description":"Arguments passed to the function","always_present":false,"example":null},{"name":"usage","type":"object","description":"Token usage statistics","always_present":true,"example":null}],"required_api_keys":[{"key_name":"OPENAI_API_KEY","provider":"OpenAI","required":false,"description":"Required for OpenAI models"}],"minimal_example":{"activity":"litellm_function_call","model":"gpt-4-turbo","prompt":"What's the weather in San Francisco?","tools":[{"type":"function","function":{"name":"get_weather","description":"Get current weather","parameters":{"type":"object","properties":{"location":{"type":"string"}}}}}]},"full_example":{"activity":"litellm_function_call","model":"gpt-4o","prompt_path":"init_params.user_request","tools_path":"init_params.available_tools","tool_choice":"auto","temperature":0.5,"max_tokens":2000},"documentation_url":null,"tags":["ai-models","function-calling","tools","litellm","agents"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"litellm_batch","display_name":"LiteLLM Batch","description":"Processes multiple prompts in a batch for efficient bulk completions. Optimizes API calls for high-throughput scenarios.","category":"ai_models","parameters":[{"name":"model","type":"model_id","description":"Model identifier","required":true,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["gpt-4","gpt-3.5-turbo","claude-3-haiku-20240307"],"validation":null,"ui_hints":{"model_mode":"chat"}},{"name":"prompts","type":"array","description":"Array of prompts to process","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"prompts_path","enum_values":null,"array_item_type":"string","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"system_prompt","type":"string","description":"System prompt applied to all requests","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"temperature","type":"float","description":"Sampling temperature","required":false,"default":1.0,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0,"max":2},"ui_hints":null},{"name":"max_tokens","type":"integer","description":"Maximum tokens per response","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":4096},"ui_hints":null},{"name":"max_concurrency","type":"integer","description":"Maximum concurrent API calls","required":false,"default":10,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":100},"ui_hints":null}],"outputs":[{"name":"responses","type":"array","description":"Array of text responses","always_present":true,"example":null},{"name":"results","type":"array","description":"Full result objects with metadata","always_present":true,"example":null},{"name":"total_tokens","type":"integer","description":"Total tokens used across all requests","always_present":true,"example":null},{"name":"success_count","type":"integer","description":"Number of successful completions","always_present":true,"example":null},{"name":"failure_count","type":"integer","description":"Number of failed completions","always_present":true,"example":null}],"required_api_keys":[{"key_name":"OPENAI_API_KEY","provider":"OpenAI","required":false,"description":"Required for OpenAI models"}],"minimal_example":{"activity":"litellm_batch","model":"gpt-3.5-turbo","prompts":["Translate 'hello' to French","Translate 'goodbye' to Spanish"]},"full_example":{"activity":"litellm_batch","model":"gpt-4-turbo","prompts_path":"prepare_prompts.outputs.prompt_list","system_prompt":"You are a helpful translator. Respond only with the translation.","temperature":0.3,"max_tokens":100,"max_concurrency":20},"documentation_url":null,"tags":["ai-models","batch","bulk","litellm","throughput"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"litellm_files_chat","display_name":"LiteLLM Files Chat","description":"Chat completion with file attachments. Supports PDFs, documents, and other file types that the model can analyze.","category":"ai_models","parameters":[{"name":"model","type":"model_id","description":"Model with file processing capability","required":true,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["gpt-4-turbo","gpt-4o","claude-3-opus-20240229"],"validation":null,"ui_hints":{"model_mode":"chat"}},{"name":"prompt","type":"string","description":"User prompt about the files","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"prompt_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"file_paths","type":"array","description":"Storage paths to files to analyze","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"file_paths_expr","enum_values":null,"array_item_type":"file_path","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"file_urls","type":"array","description":"URLs of files to analyze","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":"url","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"system_prompt","type":"string","description":"System prompt for context","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"temperature","type":"float","description":"Sampling temperature","required":false,"default":0.7,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0,"max":2},"ui_hints":null},{"name":"max_tokens","type":"integer","description":"Maximum tokens to generate","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":128000},"ui_hints":null}],"outputs":[{"name":"text","type":"string","description":"Generated response about the files","always_present":true,"example":null},{"name":"usage","type":"object","description":"Token usage statistics","always_present":true,"example":null},{"name":"files_processed","type":"integer","description":"Number of files successfully processed","always_present":true,"example":null}],"required_api_keys":[{"key_name":"OPENAI_API_KEY","provider":"OpenAI","required":false,"description":"Required for OpenAI models"}],"minimal_example":{"activity":"litellm_files_chat","model":"gpt-4o","prompt":"Summarize this document","file_paths":["documents/report.pdf"]},"full_example":{"activity":"litellm_files_chat","model":"gpt-4-turbo","prompt":"Compare and contrast the key findings in these documents","file_paths_expr":"select_files.outputs.files","system_prompt":"You are a document analyst. Provide detailed, structured analysis.","temperature":0.5,"max_tokens":4000},"documentation_url":null,"tags":["ai-models","files","documents","litellm","analysis"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"gemini_prompt","display_name":"Gemini Prompt","description":"Generates text using Google's Gemini models. Supports various Gemini model variants with configurable generation parameters.","category":"ai_models","parameters":[{"name":"model","type":"model_id","description":"Gemini model variant","required":false,"default":"gemini-pro","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["gemini-pro","gemini-1.5-pro","gemini-1.5-flash"],"validation":null,"ui_hints":{"model_mode":"chat"}},{"name":"prompt","type":"string","description":"Text prompt for generation","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"prompt_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":{"multiline":true}},{"name":"system_instruction","type":"string","description":"System instruction for the model","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"temperature","type":"float","description":"Sampling temperature","required":false,"default":0.9,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0,"max":2},"ui_hints":null},{"name":"max_output_tokens","type":"integer","description":"Maximum tokens to generate","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":8192},"ui_hints":null},{"name":"top_p","type":"float","description":"Nucleus sampling parameter","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0,"max":1},"ui_hints":null},{"name":"top_k","type":"integer","description":"Top-k sampling parameter","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":100},"ui_hints":null}],"outputs":[{"name":"text","type":"string","description":"Generated text response","always_present":true,"example":null},{"name":"usage","type":"object","description":"Token usage statistics","always_present":true,"example":null},{"name":"safety_ratings","type":"array","description":"Content safety ratings","always_present":true,"example":null}],"required_api_keys":[{"key_name":"GOOGLE_API_KEY","provider":"Google","required":true,"description":"Google AI API key for Gemini access"}],"minimal_example":{"activity":"gemini_prompt","prompt":"Write a haiku about programming"},"full_example":{"activity":"gemini_prompt","model":"gemini-1.5-pro","prompt_path":"init_params.question","system_instruction":"You are a helpful coding assistant.","temperature":0.7,"max_output_tokens":2000,"top_p":0.95},"documentation_url":null,"tags":["ai-models","gemini","google","text-generation"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"gemini_text_reader","display_name":"Gemini Text Reader","description":"Analyzes and extracts information from text using Gemini models. Optimized for text comprehension and analysis tasks.","category":"ai_models","parameters":[{"name":"model","type":"model_id","description":"Gemini model to use","required":false,"default":"gemini-pro","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":{"model_mode":"chat"}},{"name":"text","type":"string","description":"Text content to analyze","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"text_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":{"multiline":true}},{"name":"instruction","type":"string","description":"Analysis instruction or question","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"instruction_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"output_format","type":"enum","description":"Desired output format","required":false,"default":"text","supports_path_expression":false,"path_suffix_name":null,"enum_values":["text","json","markdown","bullet_points"],"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"temperature","type":"float","description":"Sampling temperature","required":false,"default":0.3,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0,"max":1},"ui_hints":null}],"outputs":[{"name":"result","type":"string","description":"Analysis result","always_present":true,"example":null},{"name":"structured_result","type":"object","description":"Structured result (if JSON format requested)","always_present":false,"example":null},{"name":"usage","type":"object","description":"Token usage statistics","always_present":true,"example":null}],"required_api_keys":[{"key_name":"GOOGLE_API_KEY","provider":"Google","required":true,"description":"Google AI API key"}],"minimal_example":{"activity":"gemini_text_reader","text":"The quick brown fox jumps over the lazy dog.","instruction":"Count the words in this sentence."},"full_example":{"activity":"gemini_text_reader","model":"gemini-1.5-pro","text_path":"read_file.outputs.text","instruction":"Extract all named entities and categorize them by type.","output_format":"json","temperature":0.2},"documentation_url":null,"tags":["ai-models","gemini","text-analysis","extraction"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"gemini_json_reader","display_name":"Gemini JSON Reader","description":"Analyzes JSON data using Gemini models. Supports querying, transformation, and extraction from JSON structures.","category":"ai_models","parameters":[{"name":"model","type":"model_id","description":"Gemini model to use","required":false,"default":"gemini-pro","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":{"model_mode":"chat"}},{"name":"json_data","type":"object","description":"JSON data to analyze","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"json_data_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"json_text","type":"string","description":"JSON as a text string","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"json_text_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"query","type":"string","description":"Question or instruction about the JSON","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"query_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"return_json","type":"boolean","description":"Whether to return result as JSON","required":false,"default":false,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"temperature","type":"float","description":"Sampling temperature","required":false,"default":0.2,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0,"max":1},"ui_hints":null}],"outputs":[{"name":"result","type":"string","description":"Analysis result as text","always_present":true,"example":null},{"name":"json_result","type":"object","description":"Result as JSON object","always_present":false,"example":null},{"name":"usage","type":"object","description":"Token usage statistics","always_present":true,"example":null}],"required_api_keys":[{"key_name":"GOOGLE_API_KEY","provider":"Google","required":true,"description":"Google AI API key"}],"minimal_example":{"activity":"gemini_json_reader","json_data":{"name":"John","age":30,"city":"NYC"},"query":"What is this person's name and age?"},"full_example":{"activity":"gemini_json_reader","model":"gemini-1.5-pro","json_data_path":"api_response.outputs.data","query":"Extract all product names and their prices, return as a simplified JSON array","return_json":true,"temperature":0.1},"documentation_url":null,"tags":["ai-models","gemini","json","data-analysis"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"gemini_file_reader","display_name":"Gemini File Reader","description":"Analyzes files (PDFs, documents, images) using Gemini's multimodal capabilities.","category":"ai_models","parameters":[{"name":"model","type":"model_id","description":"Gemini model (use gemini-1.5-pro for files)","required":false,"default":"gemini-1.5-pro","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":{"model_mode":"chat"}},{"name":"file_path","type":"file_path","description":"Storage path to the file","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"file_path_expr","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"file_url","type":"url","description":"URL of the file to analyze","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"file_url_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"instruction","type":"string","description":"Analysis instruction","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"instruction_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"temperature","type":"float","description":"Sampling temperature","required":false,"default":0.5,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0,"max":1},"ui_hints":null},{"name":"max_output_tokens","type":"integer","description":"Maximum tokens to generate","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":8192},"ui_hints":null}],"outputs":[{"name":"text","type":"string","description":"Analysis result","always_present":true,"example":null},{"name":"file_type","type":"string","description":"Detected file type","always_present":true,"example":null},{"name":"usage","type":"object","description":"Token usage statistics","always_present":true,"example":null}],"required_api_keys":[{"key_name":"GOOGLE_API_KEY","provider":"Google","required":true,"description":"Google AI API key"}],"minimal_example":{"activity":"gemini_file_reader","file_path":"documents/report.pdf","instruction":"Summarize the main findings in this document."},"full_example":{"activity":"gemini_file_reader","model":"gemini-1.5-pro","file_path_expr":"download_file.outputs.storage_path","instruction":"Extract all tables and convert them to markdown format. Also summarize the key conclusions.","temperature":0.3,"max_output_tokens":4000},"documentation_url":null,"tags":["ai-models","gemini","file-analysis","multimodal","documents"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"gemini_image_generator","display_name":"Gemini Image Generator","description":"Generates images using Google's Imagen model through the Gemini API.","category":"ai_models","parameters":[{"name":"prompt","type":"string","description":"Text description of the image to generate","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"prompt_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":{"multiline":true}},{"name":"negative_prompt","type":"string","description":"What to avoid in the generated image","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"aspect_ratio","type":"enum","description":"Image aspect ratio","required":false,"default":"1:1","supports_path_expression":false,"path_suffix_name":null,"enum_values":["1:1","16:9","9:16","4:3","3:4"],"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"num_images","type":"integer","description":"Number of images to generate","required":false,"default":1,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":4},"ui_hints":null},{"name":"safety_filter_level","type":"enum","description":"Safety filter strictness","required":false,"default":"medium","supports_path_expression":false,"path_suffix_name":null,"enum_values":["low","medium","high"],"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"image_url","type":"url","description":"URL of the generated image","always_present":true,"example":null},{"name":"image_urls","type":"array","description":"URLs of all generated images","always_present":true,"example":null},{"name":"storage_path","type":"file_path","description":"Path where image was saved","always_present":true,"example":null},{"name":"storage_paths","type":"array","description":"Storage paths for all images","always_present":true,"example":null}],"required_api_keys":[{"key_name":"GOOGLE_API_KEY","provider":"Google","required":true,"description":"Google AI API key with Imagen access"}],"minimal_example":{"activity":"gemini_image_generator","prompt":"A peaceful zen garden with cherry blossoms"},"full_example":{"activity":"gemini_image_generator","prompt":"A professional photograph of a modern minimalist living room with natural lighting","negative_prompt":"cluttered, dark, low quality","aspect_ratio":"16:9","num_images":4,"safety_filter_level":"medium"},"documentation_url":null,"tags":["ai-models","gemini","image-generation","imagen","creative"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"replicate_text2image","display_name":"Replicate Text to Image","description":"Generates images from text prompts using models hosted on Replicate (Stable Diffusion, SDXL, etc.).","category":"ai_models","parameters":[{"name":"model","type":"string","description":"Replicate model identifier (owner/model:version)","required":false,"default":"stability-ai/sdxl:latest","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["stability-ai/sdxl:latest","stability-ai/stable-diffusion:latest","black-forest-labs/flux-schnell"],"validation":null,"ui_hints":null},{"name":"prompt","type":"string","description":"Text description of the image","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"prompt_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":{"multiline":true}},{"name":"negative_prompt","type":"string","description":"What to avoid in the image","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"width","type":"integer","description":"Image width","required":false,"default":1024,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":256,"max":2048},"ui_hints":null},{"name":"height","type":"integer","description":"Image height","required":false,"default":1024,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":256,"max":2048},"ui_hints":null},{"name":"num_outputs","type":"integer","description":"Number of images to generate","required":false,"default":1,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":4},"ui_hints":null},{"name":"num_inference_steps","type":"integer","description":"Number of denoising steps","required":false,"default":50,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":100},"ui_hints":null},{"name":"guidance_scale","type":"float","description":"Classifier-free guidance scale","required":false,"default":7.5,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":20},"ui_hints":null},{"name":"seed","type":"integer","description":"Random seed for reproducibility","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"image_url","type":"url","description":"URL of the generated image","always_present":true,"example":null},{"name":"image_urls","type":"array","description":"URLs of all generated images","always_present":true,"example":null},{"name":"storage_path","type":"file_path","description":"Storage path of downloaded image","always_present":true,"example":null},{"name":"prediction_id","type":"string","description":"Replicate prediction ID","always_present":true,"example":null}],"required_api_keys":[{"key_name":"REPLICATE_API_TOKEN","provider":"Replicate","required":true,"description":"Replicate API token"}],"minimal_example":{"activity":"replicate_text2image","prompt":"A majestic lion in the savanna at sunset, photorealistic"},"full_example":{"activity":"replicate_text2image","model":"stability-ai/sdxl:latest","prompt":"A cyberpunk cityscape at night with neon lights and rain reflections","negative_prompt":"blurry, low quality, distorted","width":1024,"height":768,"num_outputs":4,"num_inference_steps":50,"guidance_scale":7.5,"seed":42},"documentation_url":null,"tags":["ai-models","replicate","image-generation","stable-diffusion","sdxl"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"replicate_text2video","display_name":"Replicate Text to Video","description":"Generates videos from text prompts using video generation models on Replicate.","category":"ai_models","parameters":[{"name":"model","type":"string","description":"Replicate video model identifier","required":false,"default":"anotherjesse/zeroscope-v2-xl:latest","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["anotherjesse/zeroscope-v2-xl:latest","cjwbw/videocrafter:latest"],"validation":null,"ui_hints":null},{"name":"prompt","type":"string","description":"Text description of the video","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"prompt_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"negative_prompt","type":"string","description":"What to avoid in the video","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"num_frames","type":"integer","description":"Number of frames to generate","required":false,"default":24,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":8,"max":120},"ui_hints":null},{"name":"fps","type":"integer","description":"Frames per second","required":false,"default":8,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":4,"max":30},"ui_hints":null},{"name":"width","type":"integer","description":"Video width","required":false,"default":576,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":256,"max":1024},"ui_hints":null},{"name":"height","type":"integer","description":"Video height","required":false,"default":320,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":256,"max":1024},"ui_hints":null},{"name":"guidance_scale","type":"float","description":"Guidance scale","required":false,"default":12.5,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":30},"ui_hints":null}],"outputs":[{"name":"video_url","type":"url","description":"URL of the generated video","always_present":true,"example":null},{"name":"storage_path","type":"file_path","description":"Storage path of downloaded video","always_present":true,"example":null},{"name":"duration_seconds","type":"float","description":"Video duration in seconds","always_present":true,"example":null},{"name":"prediction_id","type":"string","description":"Replicate prediction ID","always_present":true,"example":null}],"required_api_keys":[{"key_name":"REPLICATE_API_TOKEN","provider":"Replicate","required":true,"description":"Replicate API token"}],"minimal_example":{"activity":"replicate_text2video","prompt":"A cat playing with a ball of yarn"},"full_example":{"activity":"replicate_text2video","model":"anotherjesse/zeroscope-v2-xl:latest","prompt":"Aerial drone footage of a forest with morning mist, cinematic","negative_prompt":"blurry, shaky, low quality","num_frames":48,"fps":12,"width":576,"height":320,"guidance_scale":12.5},"documentation_url":null,"tags":["ai-models","replicate","video-generation","text-to-video"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"replicate_text_stream","display_name":"Replicate Text Stream","description":"Generates text using LLMs hosted on Replicate with streaming support.","category":"ai_models","parameters":[{"name":"model","type":"string","description":"Replicate LLM model identifier","required":false,"default":"meta/llama-2-70b-chat:latest","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["meta/llama-2-70b-chat:latest","meta/llama-2-13b-chat:latest","mistralai/mistral-7b-instruct-v0.1"],"validation":null,"ui_hints":null},{"name":"prompt","type":"string","description":"Input prompt","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"prompt_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":{"multiline":true}},{"name":"system_prompt","type":"string","description":"System prompt for context","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"max_new_tokens","type":"integer","description":"Maximum tokens to generate","required":false,"default":512,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":4096},"ui_hints":null},{"name":"temperature","type":"float","description":"Sampling temperature","required":false,"default":0.75,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0.01,"max":5},"ui_hints":null},{"name":"top_p","type":"float","description":"Nucleus sampling parameter","required":false,"default":0.9,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0,"max":1},"ui_hints":null},{"name":"repetition_penalty","type":"float","description":"Repetition penalty","required":false,"default":1.1,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0.01,"max":5},"ui_hints":null}],"outputs":[{"name":"text","type":"string","description":"Generated text","always_present":true,"example":null},{"name":"prediction_id","type":"string","description":"Replicate prediction ID","always_present":true,"example":null}],"required_api_keys":[{"key_name":"REPLICATE_API_TOKEN","provider":"Replicate","required":true,"description":"Replicate API token"}],"minimal_example":{"activity":"replicate_text_stream","prompt":"Explain quantum computing in simple terms."},"full_example":{"activity":"replicate_text_stream","model":"meta/llama-2-70b-chat:latest","prompt_path":"init_params.user_question","system_prompt":"You are a helpful AI assistant that provides accurate and concise answers.","max_new_tokens":1024,"temperature":0.7,"top_p":0.95,"repetition_penalty":1.15},"documentation_url":null,"tags":["ai-models","replicate","llm","text-generation","streaming"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"replicate_modify_image","display_name":"Replicate Modify Image","description":"Modifies or transforms existing images using image-to-image models on Replicate.","category":"ai_models","parameters":[{"name":"model","type":"string","description":"Replicate img2img model","required":false,"default":"stability-ai/sdxl:latest","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"image_url","type":"url","description":"URL of the source image","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"image_url_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"image_path","type":"file_path","description":"Storage path to the source image","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"image_path_expr","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"prompt","type":"string","description":"Description of desired modifications","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"prompt_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"negative_prompt","type":"string","description":"What to avoid","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"strength","type":"float","description":"How much to modify (0=no change, 1=complete change)","required":false,"default":0.75,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0,"max":1},"ui_hints":null},{"name":"num_inference_steps","type":"integer","description":"Number of denoising steps","required":false,"default":50,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":100},"ui_hints":null},{"name":"guidance_scale","type":"float","description":"Guidance scale","required":false,"default":7.5,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":20},"ui_hints":null}],"outputs":[{"name":"image_url","type":"url","description":"URL of the modified image","always_present":true,"example":null},{"name":"storage_path","type":"file_path","description":"Storage path of downloaded image","always_present":true,"example":null},{"name":"prediction_id","type":"string","description":"Replicate prediction ID","always_present":true,"example":null}],"required_api_keys":[{"key_name":"REPLICATE_API_TOKEN","provider":"Replicate","required":true,"description":"Replicate API token"}],"minimal_example":{"activity":"replicate_modify_image","image_url":"https://example.com/photo.jpg","prompt":"Transform into a watercolor painting style"},"full_example":{"activity":"replicate_modify_image","model":"stability-ai/sdxl:latest","image_path_expr":"download_image.outputs.storage_path","prompt":"Transform into anime style while keeping the composition","negative_prompt":"blurry, distorted, low quality","strength":0.7,"num_inference_steps":50,"guidance_scale":7.5},"documentation_url":null,"tags":["ai-models","replicate","image-modification","img2img","style-transfer"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"replicate_multi_image_modify_image","display_name":"Replicate Batch Image Modify","description":"Modifies multiple images in batch using Replicate models. Efficient for processing image collections.","category":"ai_models","parameters":[{"name":"model","type":"string","description":"Replicate img2img model","required":false,"default":"stability-ai/sdxl:latest","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"image_urls","type":"array","description":"URLs of source images","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"image_urls_path","enum_values":null,"array_item_type":"url","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"image_paths","type":"array","description":"Storage paths to source images","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"image_paths_expr","enum_values":null,"array_item_type":"file_path","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"prompt","type":"string","description":"Modification prompt (applied to all images)","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"prompt_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"strength","type":"float","description":"Modification strength","required":false,"default":0.75,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0,"max":1},"ui_hints":null},{"name":"max_concurrency","type":"integer","description":"Maximum concurrent predictions","required":false,"default":5,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":20},"ui_hints":null}],"outputs":[{"name":"image_urls","type":"array","description":"URLs of modified images","always_present":true,"example":null},{"name":"storage_paths","type":"array","description":"Storage paths of downloaded images","always_present":true,"example":null},{"name":"success_count","type":"integer","description":"Number of successfully processed images","always_present":true,"example":null},{"name":"failure_count","type":"integer","description":"Number of failed images","always_present":true,"example":null},{"name":"results","type":"array","description":"Detailed results for each image","always_present":true,"example":null}],"required_api_keys":[{"key_name":"REPLICATE_API_TOKEN","provider":"Replicate","required":true,"description":"Replicate API token"}],"minimal_example":{"activity":"replicate_multi_image_modify_image","image_urls":["https://example.com/img1.jpg","https://example.com/img2.jpg"],"prompt":"Apply vintage film filter"},"full_example":{"activity":"replicate_multi_image_modify_image","model":"stability-ai/sdxl:latest","image_paths_expr":"select_files.outputs.files","prompt":"Transform into impressionist painting style","strength":0.6,"max_concurrency":10},"documentation_url":null,"tags":["ai-models","replicate","batch","image-modification","bulk"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"replicate_extract_embeddings_url","display_name":"Replicate Image Embeddings","description":"Extracts embeddings from images using CLIP or similar models on Replicate.","category":"ai_models","parameters":[{"name":"model","type":"string","description":"Replicate embedding model","required":false,"default":"andreasjansson/clip-features:latest","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"image_url","type":"url","description":"URL of the image","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"image_url_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"image_path","type":"file_path","description":"Storage path to the image","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"image_path_expr","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"embedding","type":"array","description":"Image embedding vector","always_present":true,"example":null},{"name":"dimensions","type":"integer","description":"Embedding dimensions","always_present":true,"example":null},{"name":"prediction_id","type":"string","description":"Replicate prediction ID","always_present":true,"example":null}],"required_api_keys":[{"key_name":"REPLICATE_API_TOKEN","provider":"Replicate","required":true,"description":"Replicate API token"}],"minimal_example":{"activity":"replicate_extract_embeddings_url","image_url":"https://example.com/photo.jpg"},"full_example":{"activity":"replicate_extract_embeddings_url","model":"andreasjansson/clip-features:latest","image_path_expr":"download_image.outputs.storage_path"},"documentation_url":null,"tags":["ai-models","replicate","embeddings","clip","image-features"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"replicate_brand_compliance","display_name":"Replicate Brand Compliance","description":"Checks images for brand compliance using visual analysis models on Replicate. Detects logos, brand elements, and policy violations.","category":"ai_models","parameters":[{"name":"model","type":"string","description":"Replicate model for brand analysis","required":false,"default":"salesforce/blip:latest","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"image_url","type":"url","description":"URL of the image to check","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"image_url_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"image_path","type":"file_path","description":"Storage path to the image","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"image_path_expr","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"brand_guidelines","type":"string","description":"Brand guidelines or rules to check against","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"brand_guidelines_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":{"multiline":true}},{"name":"check_logos","type":"boolean","description":"Whether to check for logo presence","required":false,"default":true,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"check_colors","type":"boolean","description":"Whether to analyze color palette","required":false,"default":false,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"is_compliant","type":"boolean","description":"Whether the image is brand compliant","always_present":true,"example":null},{"name":"compliance_score","type":"float","description":"Compliance score (0-1)","always_present":true,"example":null},{"name":"violations","type":"array","description":"List of detected violations","always_present":true,"example":null},{"name":"detected_elements","type":"object","description":"Detected brand elements in the image","always_present":true,"example":null},{"name":"analysis_summary","type":"string","description":"Summary of the compliance analysis","always_present":true,"example":null}],"required_api_keys":[{"key_name":"REPLICATE_API_TOKEN","provider":"Replicate","required":true,"description":"Replicate API token"}],"minimal_example":{"activity":"replicate_brand_compliance","image_url":"https://example.com/marketing_image.jpg","brand_guidelines":"No competitor logos. Must include our logo in corner."},"full_example":{"activity":"replicate_brand_compliance","model":"salesforce/blip:latest","image_path_expr":"download_image.outputs.storage_path","brand_guidelines_path":"init_params.brand_rules","check_logos":true,"check_colors":true},"documentation_url":null,"tags":["ai-models","replicate","brand","compliance","marketing","analysis"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"replicate_segment","display_name":"Replicate Image Segmentation","description":"Performs image segmentation using SAM (Segment Anything Model) or similar models on Replicate.","category":"ai_models","parameters":[{"name":"model","type":"string","description":"Replicate segmentation model","required":false,"default":"meta/sam:latest","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"image_url","type":"url","description":"URL of the image to segment","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"image_url_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"image_path","type":"file_path","description":"Storage path to the image","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"image_path_expr","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"point_coords","type":"array","description":"Point coordinates for segmentation [[x, y], ...]","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"point_labels","type":"array","description":"Labels for points (1=foreground, 0=background)","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":"integer","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"box","type":"array","description":"Bounding box [x1, y1, x2, y2]","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"multimask_output","type":"boolean","description":"Whether to output multiple masks","required":false,"default":true,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"masks","type":"array","description":"Segmentation masks","always_present":true,"example":null},{"name":"mask_urls","type":"array","description":"URLs of mask images","always_present":true,"example":null},{"name":"scores","type":"array","description":"Confidence scores for each mask","always_present":true,"example":null},{"name":"storage_paths","type":"array","description":"Storage paths of downloaded masks","always_present":true,"example":null},{"name":"prediction_id","type":"string","description":"Replicate prediction ID","always_present":true,"example":null}],"required_api_keys":[{"key_name":"REPLICATE_API_TOKEN","provider":"Replicate","required":true,"description":"Replicate API token"}],"minimal_example":{"activity":"replicate_segment","image_url":"https://example.com/photo.jpg"},"full_example":{"activity":"replicate_segment","model":"meta/sam:latest","image_path_expr":"download_image.outputs.storage_path","point_coords":[[500,300],[600,400]],"point_labels":[1,1],"multimask_output":true},"documentation_url":null,"tags":["ai-models","replicate","segmentation","sam","computer-vision"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"list_emit_await","display_name":"List Emit Await (Map)","description":"Fans out workflow execution by emitting child trajectories for each item in a list. Child trajectories run in parallel and results are collected. Use extract_from_trajectories to aggregate results.","category":"control_flow","parameters":[{"name":"items","type":"array","description":"List of items to iterate over, each spawning a child trajectory","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"items_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[["item1","item2","item3"],[1,2,3,4,5]],"validation":null,"ui_hints":null},{"name":"child_workflow_name","type":"string","description":"Name of the workflow to run for each item","required":true,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"child_init_params","type":"object","description":"Base init_params to pass to each child workflow (merged with item data)","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"child_init_params_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"item_param_name","type":"string","description":"Name of the parameter to pass the item value as in child init_params","required":false,"default":"item","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"max_concurrency","type":"integer","description":"Maximum number of child trajectories to run concurrently (0 for unlimited)","required":false,"default":0,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0,"max":1000},"ui_hints":null},{"name":"continue_on_error","type":"boolean","description":"Whether to continue processing remaining items if one fails","required":false,"default":false,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"timeout_seconds","type":"integer","description":"Timeout for the entire map operation in seconds (0 for no timeout)","required":false,"default":0,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0},"ui_hints":null}],"outputs":[{"name":"trajectory_ids","type":"array","description":"List of child trajectory IDs created","always_present":true,"example":["traj-001","traj-002","traj-003"]},{"name":"item_count","type":"integer","description":"Number of items processed","always_present":true,"example":null},{"name":"success_count","type":"integer","description":"Number of child trajectories that completed successfully","always_present":true,"example":null},{"name":"failure_count","type":"integer","description":"Number of child trajectories that failed","always_present":true,"example":null},{"name":"results","type":"array","description":"Array of results from completed child trajectories","always_present":true,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"list_emit_await","items":["doc1.txt","doc2.txt","doc3.txt"],"child_workflow_name":"process_document"},"full_example":{"activity":"list_emit_await","items_path":"split_text.outputs.parts","child_workflow_name":"analyze_chunk","child_init_params":{"model":"gpt-4","temperature":0.7},"item_param_name":"chunk_text","max_concurrency":10,"continue_on_error":true,"timeout_seconds":3600},"documentation_url":null,"tags":["control-flow","map","parallel","iteration","concurrency"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"extract_from_trajectories","display_name":"Extract From Trajectories (Gather)","description":"Aggregates data from multiple child trajectories created by list_emit_await. Extracts specified fields from trajectory outputs and combines them.","category":"control_flow","parameters":[{"name":"trajectory_ids","type":"array","description":"List of trajectory IDs to extract from","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"trajectory_ids_path","enum_values":null,"array_item_type":"string","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"extract_paths","type":"array","description":"List of path expressions to extract from each trajectory","required":true,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":"string","object_schema":null,"examples":[["final_step.outputs.result"],["analysis.outputs.score","analysis.outputs.summary"]],"validation":null,"ui_hints":null},{"name":"include_metadata","type":"boolean","description":"Whether to include trajectory metadata (id, status, timing)","required":false,"default":false,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"filter_status","type":"enum","description":"Filter trajectories by status","required":false,"default":"completed","supports_path_expression":false,"path_suffix_name":null,"enum_values":["all","completed","failed","running"],"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"flatten_results","type":"boolean","description":"Whether to flatten nested arrays in results","required":false,"default":false,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"extracted_data","type":"array","description":"Array of extracted data objects from each trajectory","always_present":true,"example":null},{"name":"trajectory_count","type":"integer","description":"Number of trajectories processed","always_present":true,"example":null},{"name":"successful_extractions","type":"integer","description":"Number of successful extractions","always_present":true,"example":null},{"name":"failed_extractions","type":"integer","description":"Number of failed extractions","always_present":true,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"extract_from_trajectories","trajectory_ids_path":"fan_out.outputs.trajectory_ids","extract_paths":["result_step.outputs.text"]},"full_example":{"activity":"extract_from_trajectories","trajectory_ids_path":"list_emit_await.outputs.trajectory_ids","extract_paths":["analyze.outputs.score","analyze.outputs.summary","analyze.outputs.confidence"],"include_metadata":true,"filter_status":"completed","flatten_results":false},"documentation_url":null,"tags":["control-flow","gather","aggregate","collect","trajectories"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"select_files","display_name":"Select Files","description":"Selects files from storage using glob patterns. Supports filtering by file type, size, and modification time.","category":"control_flow","parameters":[{"name":"pattern","type":"string","description":"Glob pattern to match files","required":true,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["*.txt","**/*.json","data/**/*.csv","images/*.{png,jpg}"],"validation":null,"ui_hints":null},{"name":"base_path","type":"file_path","description":"Base directory path to search in","required":false,"default":"","supports_path_expression":true,"path_suffix_name":"base_path_expr","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"recursive","type":"boolean","description":"Whether to search recursively in subdirectories","required":false,"default":true,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"min_size_bytes","type":"integer","description":"Minimum file size in bytes (0 for no minimum)","required":false,"default":0,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0},"ui_hints":null},{"name":"max_size_bytes","type":"integer","description":"Maximum file size in bytes (0 for no maximum)","required":false,"default":0,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0},"ui_hints":null},{"name":"max_files","type":"integer","description":"Maximum number of files to return (0 for unlimited)","required":false,"default":0,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0},"ui_hints":null},{"name":"sort_by","type":"enum","description":"How to sort the results","required":false,"default":"name","supports_path_expression":false,"path_suffix_name":null,"enum_values":["name","size","modified","created"],"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"sort_descending","type":"boolean","description":"Whether to sort in descending order","required":false,"default":false,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"files","type":"array","description":"Array of file paths matching the pattern","always_present":true,"example":["data/file1.txt","data/file2.txt"]},{"name":"file_count","type":"integer","description":"Number of files matched","always_present":true,"example":null},{"name":"total_size_bytes","type":"integer","description":"Total size of all matched files in bytes","always_present":true,"example":null},{"name":"file_details","type":"array","description":"Detailed information about each file (path, size, modified)","always_present":true,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"select_files","pattern":"*.json"},"full_example":{"activity":"select_files","pattern":"**/*.csv","base_path":"data/uploads","recursive":true,"min_size_bytes":100,"max_size_bytes":10485760,"max_files":100,"sort_by":"modified","sort_descending":true},"documentation_url":null,"tags":["control-flow","files","glob","filter","select","storage"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"text_concatenate","display_name":"Text Concatenate","description":"Concatenates multiple text inputs or files into a single output. Supports custom separators and optional trimming of whitespace.","category":"data_processing","parameters":[{"name":"texts","type":"array","description":"Array of text strings to concatenate","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"texts_path","enum_values":null,"array_item_type":"string","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"file_paths","type":"array","description":"Array of file paths to read and concatenate","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":"file_path","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"separator","type":"string","description":"Separator to insert between concatenated texts","required":false,"default":"\n","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["\\n","\\n\\n",", "," | "],"validation":null,"ui_hints":null},{"name":"trim_whitespace","type":"boolean","description":"Whether to trim leading/trailing whitespace from each text","required":false,"default":false,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"text","type":"string","description":"The concatenated text result","always_present":true,"example":null},{"name":"source_count","type":"integer","description":"Number of text sources concatenated","always_present":true,"example":null},{"name":"total_length","type":"integer","description":"Total character length of the result","always_present":true,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"text_concatenate","texts":["Hello","World"]},"full_example":{"activity":"text_concatenate","texts_path":"previous_step.outputs.text_list","separator":"\n\n---\n\n","trim_whitespace":true},"documentation_url":null,"tags":["data-processing","text","concatenate","merge","combine"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"read_text_file","display_name":"Read Text File","description":"Reads a text file from storage. Automatically parses CSV files into structured data. Supports encoding detection and line-based reading.","category":"data_processing","parameters":[{"name":"file_path","type":"file_path","description":"Path to the file in storage","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"file_path_expr","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"encoding","type":"enum","description":"Text encoding to use when reading","required":false,"default":"utf-8","supports_path_expression":false,"path_suffix_name":null,"enum_values":["utf-8","utf-16","ascii","latin-1","auto"],"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"parse_csv","type":"boolean","description":"Whether to parse CSV files into structured data","required":false,"default":true,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"max_lines","type":"integer","description":"Maximum number of lines to read (0 for unlimited)","required":false,"default":0,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0},"ui_hints":null}],"outputs":[{"name":"text","type":"string","description":"The raw text content of the file","always_present":true,"example":null},{"name":"data","type":"array","description":"Parsed data if CSV (list of dicts)","always_present":false,"example":null},{"name":"line_count","type":"integer","description":"Number of lines in the file","always_present":true,"example":null},{"name":"file_size","type":"integer","description":"Size of the file in bytes","always_present":true,"example":null},{"name":"detected_encoding","type":"string","description":"Detected or used encoding","always_present":true,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"read_text_file","file_path":"data/input.txt"},"full_example":{"activity":"read_text_file","file_path_expr":"upload_step.outputs.storage_path","encoding":"auto","parse_csv":true,"max_lines":1000},"documentation_url":null,"tags":["data-processing","file","read","csv","text","io"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"split_text","display_name":"Split Text","description":"Splits text into an array of parts using a delimiter. Supports regex patterns, chunking by size, and filtering empty results.","category":"data_processing","parameters":[{"name":"text","type":"string","description":"Text to split","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"text_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"delimiter","type":"string","description":"Delimiter to split on","required":false,"default":"\n","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["\\n",",","|","\\n\\n","---"],"validation":null,"ui_hints":null},{"name":"use_regex","type":"boolean","description":"Whether to treat delimiter as a regex pattern","required":false,"default":false,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"max_splits","type":"integer","description":"Maximum number of splits (0 for unlimited)","required":false,"default":0,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0},"ui_hints":null},{"name":"remove_empty","type":"boolean","description":"Whether to remove empty strings from result","required":false,"default":true,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"trim_parts","type":"boolean","description":"Whether to trim whitespace from each part","required":false,"default":false,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"parts","type":"array","description":"Array of split text parts","always_present":true,"example":["part1","part2","part3"]},{"name":"count","type":"integer","description":"Number of parts produced","always_present":true,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"split_text","text":"one,two,three","delimiter":","},"full_example":{"activity":"split_text","text_path":"read_file.outputs.text","delimiter":"\\n\\n","use_regex":false,"max_splits":10,"remove_empty":true,"trim_parts":true},"documentation_url":null,"tags":["data-processing","text","split","parse","tokenize"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"download_image","display_name":"Download Image","description":"Downloads an image from a URL and saves it to storage. Validates image format and optionally resizes or converts the image.","category":"data_processing","parameters":[{"name":"url","type":"url","description":"URL of the image to download","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"url_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"filename","type":"string","description":"Target filename in storage (auto-generated if not provided)","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"max_size_mb","type":"float","description":"Maximum file size in megabytes","required":false,"default":50.0,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0.1,"max":500},"ui_hints":null},{"name":"allowed_formats","type":"array","description":"Allowed image formats","required":false,"default":["jpeg","jpg","png","gif","webp"],"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":"string","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"timeout_seconds","type":"integer","description":"Download timeout in seconds","required":false,"default":30,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":5,"max":300},"ui_hints":null}],"outputs":[{"name":"storage_path","type":"file_path","description":"Path where the image was saved in storage","always_present":true,"example":null},{"name":"content_type","type":"string","description":"MIME type of the downloaded image","always_present":true,"example":null},{"name":"file_size","type":"integer","description":"Size of the downloaded file in bytes","always_present":true,"example":null},{"name":"width","type":"integer","description":"Width of the image in pixels","always_present":true,"example":null},{"name":"height","type":"integer","description":"Height of the image in pixels","always_present":true,"example":null},{"name":"format","type":"string","description":"Detected image format","always_present":true,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"download_image","url":"https://example.com/image.jpg"},"full_example":{"activity":"download_image","url_path":"generate_step.outputs.image_url","filename":"downloaded_image.png","max_size_mb":10.0,"allowed_formats":["png","jpg"],"timeout_seconds":60},"documentation_url":null,"tags":["data-processing","image","download","http","media"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"download_file","display_name":"Download File","description":"Downloads a file from a URL with automatic content-type detection. Supports various file types and validates downloads.","category":"data_processing","parameters":[{"name":"url","type":"url","description":"URL of the file to download","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"url_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"filename","type":"string","description":"Target filename in storage (auto-generated if not provided)","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"max_size_mb","type":"float","description":"Maximum file size in megabytes","required":false,"default":100.0,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0.1,"max":1000},"ui_hints":null},{"name":"expected_content_type","type":"string","description":"Expected MIME type (validation fails if different)","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"timeout_seconds","type":"integer","description":"Download timeout in seconds","required":false,"default":60,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":5,"max":600},"ui_hints":null},{"name":"headers","type":"object","description":"Custom HTTP headers for the request","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"storage_path","type":"file_path","description":"Path where the file was saved in storage","always_present":true,"example":null},{"name":"content_type","type":"string","description":"MIME type of the downloaded file","always_present":true,"example":null},{"name":"file_size","type":"integer","description":"Size of the downloaded file in bytes","always_present":true,"example":null},{"name":"filename","type":"string","description":"Final filename used in storage","always_present":true,"example":null},{"name":"sha256","type":"string","description":"SHA256 hash of the downloaded file","always_present":true,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"download_file","url":"https://example.com/document.pdf"},"full_example":{"activity":"download_file","url_path":"api_response.outputs.download_url","filename":"report.pdf","max_size_mb":50.0,"expected_content_type":"application/pdf","timeout_seconds":120,"headers":{"Authorization":"Bearer token123"}},"documentation_url":null,"tags":["data-processing","file","download","http","io"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"save_text_file","display_name":"Save Text File","description":"Saves text content to a file in storage. Supports multiple encodings and optional append mode.","category":"data_processing","parameters":[{"name":"text","type":"string","description":"Text content to save","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"text_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":{"multiline":true}},{"name":"filename","type":"string","description":"Target filename in storage","required":true,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"encoding","type":"enum","description":"Text encoding to use","required":false,"default":"utf-8","supports_path_expression":false,"path_suffix_name":null,"enum_values":["utf-8","utf-16","ascii","latin-1"],"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"append","type":"boolean","description":"Whether to append to existing file instead of overwriting","required":false,"default":false,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"create_dirs","type":"boolean","description":"Whether to create parent directories if they don't exist","required":false,"default":true,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"storage_path","type":"file_path","description":"Full path where the file was saved","always_present":true,"example":null},{"name":"file_size","type":"integer","description":"Size of the saved file in bytes","always_present":true,"example":null},{"name":"line_count","type":"integer","description":"Number of lines in the saved content","always_present":true,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"save_text_file","text":"Hello, world!","filename":"output.txt"},"full_example":{"activity":"save_text_file","text_path":"chat_step.outputs.text","filename":"results/analysis_output.md","encoding":"utf-8","append":false,"create_dirs":true},"documentation_url":null,"tags":["data-processing","file","save","write","text","io"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"add_image_metadata","display_name":"Add Image Metadata","description":"Adds or modifies EXIF and other metadata in image files. Supports JPEG, PNG, and TIFF formats.","category":"data_processing","parameters":[{"name":"image_path","type":"file_path","description":"Path to the image file in storage","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"image_path_expr","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"metadata","type":"object","description":"Metadata key-value pairs to add","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"metadata_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[{"title":"My Photo","author":"John Doe","description":"A sunset"}],"validation":null,"ui_hints":null},{"name":"preserve_existing","type":"boolean","description":"Whether to preserve existing metadata","required":false,"default":true,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"output_path","type":"file_path","description":"Output path (if different from input, creates a copy)","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"storage_path","type":"file_path","description":"Path to the modified image file","always_present":true,"example":null},{"name":"metadata_added","type":"object","description":"Metadata fields that were added/modified","always_present":true,"example":null},{"name":"existing_metadata","type":"object","description":"Original metadata before modification","always_present":true,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"add_image_metadata","image_path":"images/photo.jpg","metadata":{"title":"Beach Sunset","copyright":"2024 Photographer"}},"full_example":{"activity":"add_image_metadata","image_path_expr":"download_step.outputs.storage_path","metadata_path":"init_params.image_metadata","preserve_existing":true,"output_path":"images/photo_with_metadata.jpg"},"documentation_url":null,"tags":["data-processing","image","metadata","exif","media"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"webhook_notify","display_name":"Webhook Notify","description":"Sends a POST request to a webhook URL with JSON payload. Useful for notifications, integrations, and triggering external systems.","category":"data_processing","parameters":[{"name":"url","type":"url","description":"Webhook URL to POST to","required":true,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"payload","type":"object","description":"JSON payload to send","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"payload_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"headers","type":"object","description":"Custom HTTP headers","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[{"Authorization":"Bearer token","Content-Type":"application/json"}],"validation":null,"ui_hints":null},{"name":"timeout_seconds","type":"integer","description":"Request timeout in seconds","required":false,"default":30,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":300},"ui_hints":null},{"name":"retry_count","type":"integer","description":"Number of retry attempts on failure","required":false,"default":3,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0,"max":10},"ui_hints":null},{"name":"retry_delay_seconds","type":"float","description":"Delay between retries in seconds","required":false,"default":1.0,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0.1,"max":60},"ui_hints":null}],"outputs":[{"name":"status_code","type":"integer","description":"HTTP response status code","always_present":true,"example":null},{"name":"response_body","type":"string","description":"Response body text","always_present":true,"example":null},{"name":"response_headers","type":"object","description":"Response headers","always_present":true,"example":null},{"name":"success","type":"boolean","description":"Whether the request was successful (2xx status)","always_present":true,"example":null},{"name":"attempt_count","type":"integer","description":"Number of attempts made","always_present":true,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"webhook_notify","url":"https://hooks.example.com/notify","payload":{"event":"workflow_complete","status":"success"}},"full_example":{"activity":"webhook_notify","url":"https://hooks.slack.com/services/xxx/yyy/zzz","payload_path":"build_payload.outputs.notification","headers":{"Authorization":"Bearer {{ init_params.webhook_token }}"},"timeout_seconds":30,"retry_count":3,"retry_delay_seconds":2.0},"documentation_url":null,"tags":["data-processing","webhook","http","notification","integration"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"simple_judge","display_name":"Simple Judge (LLM-as-Judge)","description":"Uses an LLM to evaluate and score content based on criteria. Implements the LLM-as-judge pattern for automated evaluation of text quality, correctness, or other metrics. Supports base64-encoded images: items containing data URLs (e.g. 'data:image/png;base64,...') or storage paths to image files (png, jpg, jpeg, webp, gif, bmp) are automatically converted to vision-compatible messages, enabling multimodal evaluation with vision-capable models.","category":"evaluation","parameters":[{"name":"content","type":"string","description":"The content to evaluate. Supports plain text, base64-encoded image data URLs (e.g. 'data:image/png;base64,...'), or storage paths to image files. When an image is detected, the judge uses vision-compatible multimodal messages.","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"content_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":{"multiline":true}},{"name":"criteria","type":"string","description":"Evaluation criteria or rubric for the judge","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"criteria_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":["Rate the response on a scale of 1-5 for helpfulness, accuracy, and clarity.","Evaluate whether the code follows best practices and is free of bugs."],"validation":null,"ui_hints":{"multiline":true}},{"name":"reference","type":"string","description":"Optional reference or expected answer for comparison","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"reference_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":{"multiline":true}},{"name":"model","type":"model_id","description":"LLM model to use as the judge","required":false,"default":"gpt-4","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["gpt-4","gpt-4-turbo","claude-3-opus","claude-3-sonnet"],"validation":null,"ui_hints":null},{"name":"score_range","type":"object","description":"Score range configuration with min and max values","required":false,"default":{"min":1,"max":5},"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"output_format","type":"enum","description":"Format of the evaluation output","required":false,"default":"structured","supports_path_expression":false,"path_suffix_name":null,"enum_values":["structured","text","json"],"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"explanation_required","type":"boolean","description":"Whether to require an explanation with the score","required":false,"default":true,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"temperature","type":"float","description":"Model temperature (lower for more consistent judgments)","required":false,"default":0.3,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0,"max":2},"ui_hints":null}],"outputs":[{"name":"score","type":"float","description":"Numeric score within the specified range","always_present":true,"example":null},{"name":"normalized_score","type":"float","description":"Score normalized to 0-1 range","always_present":true,"example":null},{"name":"explanation","type":"string","description":"Explanation of the judgment","always_present":false,"example":null},{"name":"criteria_breakdown","type":"object","description":"Breakdown of scores by individual criteria","always_present":false,"example":null},{"name":"pass_fail","type":"boolean","description":"Whether the content passes (score >= midpoint)","always_present":true,"example":null},{"name":"raw_response","type":"string","description":"Raw response from the judge model","always_present":true,"example":null}],"required_api_keys":[{"key_name":"OPENAI_API_KEY","provider":"OpenAI","required":false,"description":"Required if using OpenAI models as judge"},{"key_name":"ANTHROPIC_API_KEY","provider":"Anthropic","required":false,"description":"Required if using Claude models as judge"}],"minimal_example":{"activity":"simple_judge","content":"The sky is blue because of Rayleigh scattering.","criteria":"Rate the scientific accuracy of this statement from 1-5."},"full_example":{"activity":"simple_judge","content_path":"llm_response.outputs.text","criteria":"Evaluate the response based on:\n1. Accuracy (1-5)\n2. Completeness (1-5)\n3. Clarity (1-5)\nProvide an overall score and detailed feedback.","reference_path":"init_params.expected_answer","model":"gpt-4-turbo","score_range":{"min":1,"max":5},"output_format":"structured","explanation_required":true,"temperature":0.2},"documentation_url":null,"tags":["evaluation","judge","llm","scoring","quality","assessment"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"select_trajectories","display_name":"Select Trajectories","description":"Queries and filters trajectories based on various criteria including status, tags, time range, and custom filters. Useful for aggregating results or finding specific workflow runs.","category":"evaluation","parameters":[{"name":"workflow_name","type":"string","description":"Filter by workflow name","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"workflow_name_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"status","type":"enum","description":"Filter by trajectory status","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":["pending","running","completed","failed","cancelled","all"],"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"tags","type":"array","description":"Filter by tags (all must match)","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":"string","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"parent_trajectory_id","type":"string","description":"Filter by parent trajectory ID","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"parent_trajectory_id_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"created_after","type":"string","description":"Filter trajectories created after this ISO timestamp","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"created_before","type":"string","description":"Filter trajectories created before this ISO timestamp","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"limit","type":"integer","description":"Maximum number of trajectories to return","required":false,"default":100,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":10000},"ui_hints":null},{"name":"offset","type":"integer","description":"Number of trajectories to skip (for pagination)","required":false,"default":0,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0},"ui_hints":null},{"name":"order_by","type":"enum","description":"Field to sort results by","required":false,"default":"created_at","supports_path_expression":false,"path_suffix_name":null,"enum_values":["created_at","updated_at","workflow_name","status"],"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"order_descending","type":"boolean","description":"Sort in descending order","required":false,"default":true,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"include_outputs","type":"boolean","description":"Include trajectory outputs in results","required":false,"default":false,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"trajectories","type":"array","description":"Array of matching trajectory objects","always_present":true,"example":null},{"name":"trajectory_ids","type":"array","description":"Array of trajectory IDs only","always_present":true,"example":null},{"name":"count","type":"integer","description":"Number of trajectories returned","always_present":true,"example":null},{"name":"total_count","type":"integer","description":"Total number of matching trajectories (before limit)","always_present":true,"example":null},{"name":"has_more","type":"boolean","description":"Whether there are more results beyond the limit","always_present":true,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"select_trajectories","workflow_name":"data_processing","status":"completed"},"full_example":{"activity":"select_trajectories","workflow_name":"evaluation_pipeline","status":"completed","tags":["experiment-v2","production"],"parent_trajectory_id_path":"init_params.batch_id","created_after":"2024-01-01T00:00:00Z","limit":500,"offset":0,"order_by":"created_at","order_descending":true,"include_outputs":true},"documentation_url":null,"tags":["evaluation","trajectories","query","filter","aggregate"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"visualize_correlation","display_name":"Visualize Correlation","description":"Creates correlation plots and statistical analysis between two sets of values. Useful for analyzing relationships between model outputs, scores, or metrics.","category":"evaluation","parameters":[{"name":"x_values","type":"array","description":"Array of X-axis values","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"x_values_path","enum_values":null,"array_item_type":"float","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"y_values","type":"array","description":"Array of Y-axis values","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"y_values_path","enum_values":null,"array_item_type":"float","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"x_label","type":"string","description":"Label for X-axis","required":false,"default":"X","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"y_label","type":"string","description":"Label for Y-axis","required":false,"default":"Y","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"title","type":"string","description":"Chart title","required":false,"default":"Correlation Plot","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"plot_type","type":"enum","description":"Type of visualization","required":false,"default":"scatter","supports_path_expression":false,"path_suffix_name":null,"enum_values":["scatter","line","scatter_with_regression","heatmap"],"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"show_regression_line","type":"boolean","description":"Whether to show the linear regression line","required":false,"default":true,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"show_confidence_interval","type":"boolean","description":"Whether to show 95% confidence interval","required":false,"default":false,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"output_format","type":"enum","description":"Output image format","required":false,"default":"png","supports_path_expression":false,"path_suffix_name":null,"enum_values":["png","svg","pdf","html"],"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"width","type":"integer","description":"Plot width in pixels","required":false,"default":800,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":200,"max":4000},"ui_hints":null},{"name":"height","type":"integer","description":"Plot height in pixels","required":false,"default":600,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":200,"max":4000},"ui_hints":null}],"outputs":[{"name":"storage_path","type":"file_path","description":"Path to the generated visualization","always_present":true,"example":null},{"name":"correlation_coefficient","type":"float","description":"Pearson correlation coefficient (r)","always_present":true,"example":null},{"name":"r_squared","type":"float","description":"Coefficient of determination (R-squared)","always_present":true,"example":null},{"name":"p_value","type":"float","description":"Statistical significance p-value","always_present":true,"example":null},{"name":"regression_equation","type":"string","description":"Linear regression equation (y = mx + b)","always_present":true,"example":null},{"name":"slope","type":"float","description":"Slope of the regression line","always_present":true,"example":null},{"name":"intercept","type":"float","description":"Y-intercept of the regression line","always_present":true,"example":null},{"name":"sample_size","type":"integer","description":"Number of data points","always_present":true,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"visualize_correlation","x_values":[1,2,3,4,5],"y_values":[2.1,3.9,6.2,7.8,10.1]},"full_example":{"activity":"visualize_correlation","x_values_path":"extract_scores.outputs.model_a_scores","y_values_path":"extract_scores.outputs.model_b_scores","x_label":"Model A Score","y_label":"Model B Score","title":"Model Score Correlation Analysis","plot_type":"scatter_with_regression","show_regression_line":true,"show_confidence_interval":true,"output_format":"png","width":1200,"height":800},"documentation_url":null,"tags":["evaluation","visualization","correlation","statistics","analysis","plot"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"number_sequence_generator","display_name":"Number Sequence Generator","description":"Generates a sequence of numbers based on start, end, and step parameters. Useful for creating iteration ranges.","category":"iteration","parameters":[{"name":"start","type":"integer","description":"Starting number of the sequence","required":false,"default":0,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"end","type":"integer","description":"Ending number of the sequence (exclusive)","required":false,"default":10,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"step","type":"integer","description":"Step increment between numbers","required":false,"default":1,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1},"ui_hints":null}],"outputs":[{"name":"numbers","type":"array","description":"List of generated numbers","always_present":true,"example":[0,1,2,3,4]},{"name":"count","type":"integer","description":"Number of elements in the sequence","always_present":true,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"number_sequence_generator"},"full_example":{"activity":"number_sequence_generator","start":1,"end":100,"step":10},"documentation_url":null,"tags":["iteration","numbers","sequence","range"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"conditional_branch","display_name":"Conditional Branch","description":"Evaluates a condition and returns which branch to take. Used for workflow control flow.","category":"iteration","parameters":[{"name":"condition","type":"boolean","description":"The condition to evaluate","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"condition_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"true_value","type":"string","description":"Value to return if condition is true","required":false,"default":"true","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"false_value","type":"string","description":"Value to return if condition is false","required":false,"default":"false","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"branch","type":"string","description":"The branch value based on condition","always_present":true,"example":null},{"name":"condition_result","type":"boolean","description":"The evaluated condition result","always_present":true,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"conditional_branch","condition":true},"full_example":{"activity":"conditional_branch","condition_path":"previous_step.outputs.is_valid","true_value":"process","false_value":"skip"},"documentation_url":null,"tags":["iteration","conditional","branch","control-flow"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"loop_counter","display_name":"Loop Counter","description":"Tracks loop iterations and provides iteration metadata. Useful for implementing loop logic in workflows.","category":"iteration","parameters":[{"name":"current","type":"integer","description":"Current iteration number","required":false,"default":0,"supports_path_expression":true,"path_suffix_name":"current_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"max_iterations","type":"integer","description":"Maximum number of iterations","required":false,"default":10,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":1000},"ui_hints":null}],"outputs":[{"name":"next","type":"integer","description":"Next iteration number","always_present":true,"example":null},{"name":"is_complete","type":"boolean","description":"Whether max iterations reached","always_present":true,"example":null},{"name":"iterations_remaining","type":"integer","description":"Number of iterations remaining","always_present":true,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"loop_counter","max_iterations":5},"full_example":{"activity":"loop_counter","current_path":"previous_counter.outputs.next","max_iterations":100},"documentation_url":null,"tags":["iteration","loop","counter","control-flow"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"runbook","display_name":"Runbook","description":"Runs an agent task directly on Daytona. Supports claude-code, codex, and gemini-cli agents. Builds a temporary containerized environment on the fly — no pre-packaged dataset required.","category":"specialized","parameters":[{"name":"instruction","type":"string","description":"Markdown instructions for the agent to execute","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"instruction_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":{"multiline":true}},{"name":"agent","type":"string","description":"Agent runtime to use","required":false,"default":"claude-code","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["claude-code","codex","gemini-cli"],"validation":null,"ui_hints":null},{"name":"model","type":"string","description":"Model for the agent to use. Format varies by agent.","required":false,"default":"claude-sonnet-4-6","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["claude-sonnet-4-6","claude-opus-4-6","o4-mini","o3","gpt-4.1","gemini/gemini-2.5-pro","gemini/gemini-2.5-flash"],"validation":null,"ui_hints":null},{"name":"template_variables","type":"object","description":"Key-value pairs for {{var}} substitution in the instruction","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"pip_packages","type":"array","description":"Additional pip packages to install in the container","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":"string","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"apt_packages","type":"array","description":"Additional apt packages to install in the container","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":"string","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"base_image","type":"string","description":"Docker base image for the environment","required":false,"default":"python:3.13-slim-bookworm","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["python:3.13-slim-bookworm","python:3.11-slim","ubuntu:22.04"],"validation":null,"ui_hints":null},{"name":"files","type":"array","description":"Storage paths to download and mount in /app/assets/. Zip files are auto-extracted.","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"files_path","enum_values":null,"array_item_type":"file_path","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"timeout_sec","type":"integer","description":"Agent timeout in seconds","required":false,"default":1800,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":60,"max":7200},"ui_hints":null},{"name":"cpus","type":"integer","description":"CPU cores allocated to the sandbox","required":false,"default":4,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":16},"ui_hints":null},{"name":"memory","type":"string","description":"Memory allocated to the sandbox","required":false,"default":"8G","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["4G","8G","16G"],"validation":null,"ui_hints":null},{"name":"agent_env","type":"object","description":"Environment variables passed to the agent at runtime","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"network_enabled","type":"boolean","description":"Whether the sandbox has network access","required":false,"default":true,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"snapshot","type":"string","description":"Daytona snapshot name. When provided, the sandbox is created from this snapshot instead of building from the Dockerfile.","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"snapshot_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":["prism-playwright","my-custom-snapshot"],"validation":null,"ui_hints":null},{"name":"image","type":"string","description":"Container image from a public registry (Docker Hub, GHCR, GCR, ECR, etc.). When set, the sandbox is created directly from this image — no Dockerfile is built. Use this to bring your own pre-built environment. Ignored if 'snapshot' is also set.","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"image_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":["ghcr.io/myorg/my-env:latest","docker.io/myuser/data-science:v2","us-docker.pkg.dev/my-project/repo/image:tag"],"validation":null,"ui_hints":null},{"name":"langfuse_tracing","type":"boolean","description":"Enable Langfuse tracing for the agent session. Only supported for claude-code.","required":false,"default":false,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"mcp_servers","type":"object","description":"MCP server definitions to register with the agent. Format: {\"ServerName\": {\"command\": \"npx\", \"args\": [...]}} or {\"ServerName\": {\"url\": \"https://...\", \"type\": \"http\"}}. Supported by claude-code, codex, and gemini-cli.","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[{"figma":{"url":"https://mcp.figma.com/mcp","type":"http"},"playwright":{"command":"npx","args":["@playwright/mcp@latest"]}}],"validation":null,"ui_hints":null},{"name":"mcp_auth_tokens","type":"object","description":"Pre-obtained Bearer tokens for HTTP MCP servers. Format: {\"server_name\": \"token\"}. Injects Authorization headers into the matching mcp_servers config so the agent skips OAuth. Use with a _path suffix to reference tokens from a previous step.","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[{"figma":"fig_abc123..."}],"validation":null,"ui_hints":null},{"name":"mcp_auth_token","type":"string","description":"Convenience shorthand: a single Bearer token applied to ALL HTTP MCP servers in mcp_servers. Use with _path suffix to reference a token from a previous step (e.g. \"read_token.outputs.text\"). If mcp_auth_tokens is also provided, per-server tokens take precedence.","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":"auth_token","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"success","type":"boolean","description":"Whether the runbook completed successfully","always_present":true,"example":null},{"name":"files","type":"array","description":"List of all output files persisted from the sandbox (agent logs + results)","always_present":true,"example":null},{"name":"results_files","type":"array","description":"List of output files from /app/results/ only (excludes agent session logs)","always_present":true,"example":null},{"name":"num_files_saved","type":"integer","description":"Number of output files saved","always_present":true,"example":null},{"name":"agent","type":"string","description":"Agent that was used","always_present":true,"example":null},{"name":"model","type":"string","description":"Model that was used","always_present":true,"example":null},{"name":"error","type":"string","description":"Error message if the runbook failed","always_present":false,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"runbook","instruction":"Write 'hello world' to /app/output.txt"},"full_example":{"activity":"runbook","instruction":"Install requests and fetch https://httpbin.org/get. Save the JSON response to /app/output.json","agent":"codex","model":"o4-mini","pip_packages":["requests"],"base_image":"python:3.13-slim-bookworm","timeout_sec":900,"cpus":4,"memory":"8G","network_enabled":true},"documentation_url":null,"tags":["specialized","agent","runbook","daytona"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"harbor_terminal_bench","display_name":"Harbor Terminal Bench","description":"Runs terminal-based benchmarks using Harbor infrastructure. Executes commands in isolated containers and captures output, timing, and resource usage for benchmarking purposes.","category":"specialized","parameters":[{"name":"command","type":"string","description":"Shell command to execute in the terminal","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"command_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":{"multiline":true}},{"name":"image","type":"string","description":"Docker image to use for execution","required":false,"default":"ubuntu:latest","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["ubuntu:22.04","python:3.11","node:18","alpine:latest"],"validation":null,"ui_hints":null},{"name":"timeout_seconds","type":"integer","description":"Maximum execution time in seconds","required":false,"default":300,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":7200},"ui_hints":null},{"name":"memory_limit_mb","type":"integer","description":"Memory limit in megabytes","required":false,"default":512,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":64,"max":32768},"ui_hints":null},{"name":"cpu_limit","type":"float","description":"CPU limit (1.0 = 1 full CPU core)","required":false,"default":1.0,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0.1,"max":16},"ui_hints":null},{"name":"environment","type":"object","description":"Environment variables to set","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"environment_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"working_directory","type":"string","description":"Working directory for command execution","required":false,"default":"/workspace","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"input_files","type":"array","description":"Storage paths of files to mount into the container","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":"file_path","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"capture_timing","type":"boolean","description":"Whether to capture detailed timing metrics","required":false,"default":true,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"capture_resources","type":"boolean","description":"Whether to capture resource usage (CPU, memory)","required":false,"default":true,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"stdout","type":"string","description":"Standard output from the command","always_present":true,"example":null},{"name":"stderr","type":"string","description":"Standard error from the command","always_present":true,"example":null},{"name":"exit_code","type":"integer","description":"Process exit code (0 = success)","always_present":true,"example":null},{"name":"execution_time_ms","type":"float","description":"Total execution time in milliseconds","always_present":true,"example":null},{"name":"peak_memory_mb","type":"float","description":"Peak memory usage in megabytes","always_present":false,"example":null},{"name":"cpu_time_ms","type":"float","description":"CPU time consumed in milliseconds","always_present":false,"example":null},{"name":"success","type":"boolean","description":"Whether the command completed successfully","always_present":true,"example":null},{"name":"timed_out","type":"boolean","description":"Whether the command was killed due to timeout","always_present":true,"example":null}],"required_api_keys":[{"key_name":"HARBOR_API_KEY","provider":"Harbor","required":false,"description":"API key for Harbor terminal service"}],"minimal_example":{"activity":"harbor_terminal_bench","command":"echo 'Hello, World!'"},"full_example":{"activity":"harbor_terminal_bench","command":"python benchmark.py --iterations 1000","image":"python:3.11-slim","timeout_seconds":600,"memory_limit_mb":2048,"cpu_limit":2.0,"environment":{"PYTHONPATH":"/workspace","NUM_THREADS":"4"},"working_directory":"/workspace","input_files":["scripts/benchmark.py","data/test_input.json"],"capture_timing":true,"capture_resources":true},"documentation_url":null,"tags":["specialized","benchmark","terminal","docker","execution","harbor"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"huggingface_croissant_sample","display_name":"HuggingFace Croissant Sample","description":"Samples data from HuggingFace datasets using the Croissant format. Allows random or sequential sampling with optional filtering and transformation.","category":"specialized","parameters":[{"name":"dataset_id","type":"string","description":"HuggingFace dataset identifier (e.g., 'squad', 'imdb')","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"dataset_id_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":["squad","imdb","glue","wikitext","openai/gsm8k"],"validation":null,"ui_hints":null},{"name":"split","type":"string","description":"Dataset split to sample from","required":false,"default":"train","supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":["train","test","validation"],"validation":null,"ui_hints":null},{"name":"num_samples","type":"integer","description":"Number of samples to retrieve","required":false,"default":10,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":10000},"ui_hints":null},{"name":"sampling_method","type":"enum","description":"Method for selecting samples","required":false,"default":"random","supports_path_expression":false,"path_suffix_name":null,"enum_values":["random","sequential","stratified"],"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"seed","type":"integer","description":"Random seed for reproducibility","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"columns","type":"array","description":"Specific columns to include (empty for all)","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":"string","object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"filter_expression","type":"string","description":"Filter expression to apply (e.g., 'label == 1')","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"revision","type":"string","description":"Dataset revision/version to use","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"trust_remote_code","type":"boolean","description":"Whether to trust and execute remote code from the dataset","required":false,"default":false,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"samples","type":"array","description":"Array of sampled data records","always_present":true,"example":null},{"name":"sample_count","type":"integer","description":"Number of samples returned","always_present":true,"example":null},{"name":"columns","type":"array","description":"List of column names in the samples","always_present":true,"example":null},{"name":"dataset_info","type":"object","description":"Metadata about the dataset","always_present":true,"example":null},{"name":"total_rows","type":"integer","description":"Total number of rows in the split","always_present":true,"example":null}],"required_api_keys":[{"key_name":"HF_TOKEN","provider":"HuggingFace","required":false,"description":"HuggingFace token for accessing private or gated datasets"}],"minimal_example":{"activity":"huggingface_croissant_sample","dataset_id":"squad","num_samples":5},"full_example":{"activity":"huggingface_croissant_sample","dataset_id":"openai/gsm8k","split":"test","num_samples":100,"sampling_method":"random","seed":42,"columns":["question","answer"],"filter_expression":"len(answer) > 10","revision":"main","trust_remote_code":false},"documentation_url":null,"tags":["specialized","huggingface","dataset","sampling","ml","data"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"huggingface_dataset_info","display_name":"HuggingFace Dataset Info","description":"Retrieves metadata and information about a HuggingFace dataset including schema, splits, size, and features.","category":"specialized","parameters":[{"name":"dataset_id","type":"string","description":"HuggingFace dataset identifier","required":true,"default":null,"supports_path_expression":true,"path_suffix_name":"dataset_id_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":["squad","imdb","glue","cnn_dailymail","openai/gsm8k"],"validation":null,"ui_hints":null},{"name":"revision","type":"string","description":"Dataset revision/version","required":false,"default":null,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"include_preview","type":"boolean","description":"Whether to include a small preview of the data","required":false,"default":false,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"preview_rows","type":"integer","description":"Number of preview rows to include","required":false,"default":3,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":1,"max":10},"ui_hints":null}],"outputs":[{"name":"dataset_id","type":"string","description":"Full dataset identifier","always_present":true,"example":null},{"name":"description","type":"string","description":"Dataset description","always_present":true,"example":null},{"name":"features","type":"object","description":"Schema/features of the dataset","always_present":true,"example":null},{"name":"splits","type":"object","description":"Available splits with row counts","always_present":true,"example":null},{"name":"total_size_bytes","type":"integer","description":"Total dataset size in bytes","always_present":true,"example":null},{"name":"download_size_bytes","type":"integer","description":"Download size in bytes","always_present":true,"example":null},{"name":"license","type":"string","description":"Dataset license","always_present":false,"example":null},{"name":"citation","type":"string","description":"Citation information","always_present":false,"example":null},{"name":"homepage","type":"string","description":"Dataset homepage URL","always_present":false,"example":null},{"name":"preview","type":"array","description":"Preview rows from the dataset","always_present":false,"example":null},{"name":"tags","type":"array","description":"Dataset tags","always_present":true,"example":null}],"required_api_keys":[{"key_name":"HF_TOKEN","provider":"HuggingFace","required":false,"description":"HuggingFace token for accessing private or gated datasets"}],"minimal_example":{"activity":"huggingface_dataset_info","dataset_id":"squad"},"full_example":{"activity":"huggingface_dataset_info","dataset_id":"openai/gsm8k","revision":"main","include_preview":true,"preview_rows":5},"documentation_url":null,"tags":["specialized","huggingface","dataset","metadata","ml","info"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"text_echo","display_name":"Text Echo","description":"Echoes the input text back as output. Useful for testing and passing data through workflows.","category":"utility","parameters":[{"name":"text","type":"string","description":"Text to echo back","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"text_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"text","type":"string","description":"The echoed text","always_present":true,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"text_echo","text":"Hello, world!"},"full_example":{"activity":"text_echo","text_path":"init_params.message"},"documentation_url":null,"tags":["utility","text","echo","passthrough"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"text_doubler","display_name":"Text Doubler","description":"Doubles the input text with a configurable delay. Useful for testing async workflows and timing.","category":"utility","parameters":[{"name":"text","type":"string","description":"Text to double","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"text_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null},{"name":"delay","type":"float","description":"Delay in seconds before returning","required":false,"default":0.0,"supports_path_expression":false,"path_suffix_name":null,"enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":{"min":0,"max":60},"ui_hints":null}],"outputs":[{"name":"text","type":"string","description":"The doubled text (original + original)","always_present":true,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"text_doubler","text":"Hello"},"full_example":{"activity":"text_doubler","text":"Hello","delay":1.5},"documentation_url":null,"tags":["utility","text","testing","delay"],"version":"1.0.0","deprecated":false,"deprecation_message":null},{"activity_name":"text_template","display_name":"Text / JSON Template","description":"Stores raw text or JSON values and makes them available as outputs for downstream steps. Use this to define system prompts, configuration objects, or any static/dynamic content that other steps need to reference. Supports path expressions to pull values from previous steps or init_params.","category":"utility","parameters":[{"name":"text","type":"string","description":"Raw text content to store (e.g. a system prompt, instructions, or any string value). Available in outputs as 'text'.","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"text_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":{"multiline":true}},{"name":"json_value","type":"object","description":"A JSON object to store and pass through. Can be provided as a JSON string (will be parsed) or as a structured object. Available in outputs as 'json_value'. Useful for storing configuration, structured prompts, or any key-value data.","required":false,"default":null,"supports_path_expression":true,"path_suffix_name":"json_value_path","enum_values":null,"array_item_type":null,"object_schema":null,"examples":[],"validation":null,"ui_hints":null}],"outputs":[{"name":"text","type":"string","description":"The stored text content (present when 'text' parameter is provided)","always_present":false,"example":null},{"name":"json_value","type":"object","description":"The stored JSON object (present when 'json_value' parameter is provided)","always_present":false,"example":null}],"required_api_keys":[],"minimal_example":{"activity":"text_template","text":"You are a helpful assistant that evaluates code quality."},"full_example":{"activity":"text_template","text":"You are an expert code reviewer. Focus on correctness, readability, and best practices.","json_value":{"temperature":0.7,"max_tokens":1024,"categories":["correct","incorrect","partial"]}},"documentation_url":null,"tags":["utility","text","json","template","prompt","configuration","passthrough"],"version":"1.0.0","deprecated":false,"deprecation_message":null}],"total_count":44,"categories":{"ai_models":20,"control_flow":3,"data_processing":8,"evaluation":3,"iteration":3,"specialized":4,"utility":3}}