Skip to content

AI & LLM

AI model integration, text generation, embeddings, and autonomous agents.

18 modules

ModuleDescription
자율 에이전트메모리와 목표 지향 행동을 갖춘 자율 AI 에이전트
체인 에이전트여러 단계를 가진 순차적 AI 처리 체인
도구 사용 에이전트도구/기능을 호출할 수 있는 AI 에이전트
텍스트 임베딩AI 모델을 사용하여 텍스트에서 벡터 임베딩 생성
AI 추출AI를 사용하여 텍스트에서 구조화된 데이터 추출
로컬 Ollama 채팅Ollama를 통해 로컬 LLM과 채팅 (완전 오프라인)
AI 메모리AI 에이전트용 대화 메모리
엔티티 메모리대화에서 엔티티(사람, 장소, 개념) 추출 및 추적
Redis 메모리Redis 저장소를 사용한 영구 대화 메모리
벡터 메모리관련 컨텍스트 검색을 위한 벡터 임베딩을 사용한 의미 메모리
AI 모델AI 에이전트용 LLM 모델 구성
AI ToolExpose a module as a tool for AI Agent
비전 분석AI 비전 모델을 사용하여 이미지 분석
Claude 채팅Anthropic Claude AI에 채팅 메시지를 보내고 응답 받기
Google Gemini 채팅Google Gemini AI에 채팅 메시지를 보내고 응답 받기
OpenAI 채팅OpenAI GPT 모델에 채팅 메시지 전송
DALL-E 이미지 생성DALL-E를 사용하여 이미지 생성
AI 에이전트다중 포트 연결(모델, 메모리, 도구)이 있는 자율 AI 에이전트

Modules

자율 에이전트

agent.autonomous

메모리와 목표 지향 행동을 갖춘 자율 AI 에이전트

Parameters:

NameTypeRequiredDefaultDescription
goalstringYes-에이전트가 달성할 목표
contextstringNo-에이전트가 달성할 목표
max_iterationsnumberNo5추가 컨텍스트 또는 제약 조건
llm_providerselect (openai, ollama)Noopenai최대 추론 단계
modelstringNogpt-4-turbo-preview모델 이름 (예: gpt-4, llama2, mistral)
ollama_urlstringNohttp://localhost:11434모델 이름 (예: gpt-4, llama2, mistral)
temperaturenumberNo0.7Ollama 서버 URL (ollama 제공자 전용)

Output:

FieldTypeDescription
resultstring창의성 수준 (0-2)
thoughtsarray작업 결과
iterationsnumber작업 결과
goal_achievedboolean에이전트 추론 단계

Example: Research task

yaml
goal: Research the latest trends in AI and summarize the top 3
max_iterations: 5
model: gpt-4

Example: Problem solving

yaml
goal: Find the best approach to optimize database queries
context: PostgreSQL database with 10M records
max_iterations: 10

체인 에이전트

agent.chain

여러 단계를 가진 순차적 AI 처리 체인

Parameters:

NameTypeRequiredDefaultDescription
inputstringYes-체인의 초기 입력
chain_stepsarrayYes-체인의 초기 입력
llm_providerselect (openai, ollama)Noopenai처리 단계 배열 (각각 프롬프트 템플릿)
modelstringNogpt-4-turbo-preview모델 이름 (예: gpt-4, llama2, mistral)
ollama_urlstringNohttp://localhost:11434모델 이름 (예: gpt-4, llama2, mistral)
temperaturenumberNo0.7Ollama 서버 URL (ollama 제공자 전용)

Output:

FieldTypeDescription
resultstring창의성 수준 (0-2)
intermediate_resultsarray작업 결과
steps_completednumber작업 결과

Example: Content pipeline

yaml
input: AI and machine learning trends
chain_steps: ["Generate 5 blog post ideas about: {input}", "Take the first idea and write a detailed outline: {previous}", "Write an introduction paragraph based on: {previous}"]
model: gpt-4

Example: Data analysis chain

yaml
input: User behavior data shows 60% bounce rate
chain_steps: ["Analyze what might cause this issue: {input}", "Suggest 3 solutions based on: {previous}", "Create an action plan from: {previous}"]

도구 사용 에이전트

agent.tool_use

도구/기능을 호출할 수 있는 AI 에이전트

Parameters:

NameTypeRequiredDefaultDescription
promptstringYes-에이전트의 목표 또는 작업
toolsarrayYes-도구 정의 목록 [{name, description, parameters}]
providerselect (openai, anthropic)Noopenai에이전트의 LLM 제공자
modelstringNogpt-4o사용할 모델
api_keystringNo-API 키 (환경 변수로 대체 가능)
max_iterationsnumberNo10최대 도구 호출 라운드 수
system_promptstringNo-에이전트를 안내하기 위한 선택적 시스템 프롬프트

Output:

FieldTypeDescription
resultstring에이전트의 최종 응답
tool_callsarray실행 중에 수행된 모든 도구 호출
iterationsnumber완료된 반복 횟수
modelstring사용된 모델

Example: File Processing Agent

yaml
prompt: Read the config file and update the version number
tools: [{"name": "read_file", "description": "Read contents of a file", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path"}}, "required": ["path"]}}, {"name": "write_file", "description": "Write contents to a file", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path"}, "content": {"type": "string", "description": "File content"}}, "required": ["path", "content"]}}]
provider: openai
model: gpt-4o
max_iterations: 5

텍스트 임베딩

ai.embed

AI 모델을 사용하여 텍스트에서 벡터 임베딩 생성

Parameters:

NameTypeRequiredDefaultDescription
textstringYes-임베딩할 텍스트
providerselect (openai, local)Noopenai임베딩을 위한 AI 제공자
modelstringNotext-embedding-3-small사용할 임베딩 모델
api_keystringNo-API 키 (환경 변수로 대체 가능)
dimensionsnumberNo-임베딩 차원 (지원하는 모델에 한함)

Output:

FieldTypeDescription
embeddingsarray벡터 임베딩 배열
modelstring임베딩에 사용된 모델
dimensionsnumber임베딩 벡터의 차원 수
token_countnumber처리된 토큰 수

Example: Single Text Embedding

yaml
text: The quick brown fox jumps over the lazy dog
provider: openai
model: text-embedding-3-small

Example: Reduced Dimensions

yaml
text: Semantic search query
provider: openai
model: text-embedding-3-small
dimensions: 256

AI 추출

ai.extract

AI를 사용하여 텍스트에서 구조화된 데이터 추출

Parameters:

NameTypeRequiredDefaultDescription
textstringYes-데이터를 추출할 텍스트
schemaobjectYes-추출할 필드를 정의하는 JSON 스키마
instructionsstringNo-추가 추출 지침
providerselect (openai, anthropic)Noopenai사용할 AI 제공자
modelstringNogpt-4o-mini추출에 사용할 모델
api_keystringNo-API 키 (환경 변수로 대체 가능)
temperaturenumberNo0샘플링 온도 (0-2)

Output:

FieldTypeDescription
extractedobject추출된 구조화된 데이터
modelstring추출에 사용된 모델
raw_responsestring원본 모델 응답

Example: Extract Contact Info

yaml
text: John Smith is a senior engineer at Acme Corp. Email: john@acme.com
schema: {"type": "object", "properties": {"name": {"type": "string"}, "title": {"type": "string"}, "company": {"type": "string"}, "email": {"type": "string"}}}
provider: openai
model: gpt-4o-mini

Example: Extract Invoice Data

yaml
text: Invoice #1234 from Acme Corp. Total: $500.00. Due: 2024-03-01
schema: {"type": "object", "properties": {"invoice_number": {"type": "string"}, "vendor": {"type": "string"}, "total": {"type": "number"}, "due_date": {"type": "string"}}}
instructions: Extract all invoice fields. Parse amounts as numbers.

로컬 Ollama 채팅

ai.local_ollama.chat

Ollama를 통해 로컬 LLM과 채팅 (완전 오프라인)

Parameters:

NameTypeRequiredDefaultDescription
promptstringYes-로컬 LLM에 보낼 메시지
modelselect (llama2, llama2:13b, llama2:70b, mistral, mixtral, codellama, codellama:13b, phi, neural-chat, starling-lm)Nollama2로컬 LLM에 보낼 메시지
temperaturenumberNo0.7샘플링 온도 (0-2)
system_messagestringNo-시스템 역할 메시지 (선택사항)
ollama_urlstringNohttp://localhost:11434시스템 역할 메시지 (선택사항)
max_tokensnumberNo-Ollama 서버 URL

Output:

FieldTypeDescription
responsestring응답의 최대 토큰 (선택사항, 모델에 따라 다름)
modelstring작업의 응답
contextarray작업의 응답
total_durationnumber모델 이름 또는 식별자
load_durationnumber후속 요청을 위한 대화 컨텍스트
prompt_eval_countnumber총 처리 시간
eval_countnumber모델 로딩 시간

Example: Simple local chat

yaml
prompt: Explain quantum computing in 3 sentences
model: llama2

Example: Code generation with local model

yaml
prompt: Write a Python function to calculate fibonacci numbers
model: codellama
temperature: 0.2
system_message: You are a Python programming expert. Write clean, efficient code.

Example: Local reasoning task

yaml
prompt: What are the pros and cons of microservices architecture?
model: mistral
temperature: 0.7

AI 메모리

ai.memory

AI 에이전트용 대화 메모리

Parameters:

NameTypeRequiredDefaultDescription
memory_typeselect (buffer, window, summary)Yesbuffer메모리 저장 유형
window_sizenumberNo10유지할 최근 메시지 수 (윈도우 메모리용)
session_idstringNo-이 대화 세션의 고유 식별자
initial_messagesarrayNo[]사전 로드된 대화 기록

Output:

FieldTypeDescription
memory_typestring사전 로드된 대화 기록
session_idstring사전 로드된 대화 기록
messagesarray메모리 유형
configobject세션 식별자

Example: Simple Buffer Memory

yaml
memory_type: buffer

Example: Window Memory (last 5 messages)

yaml
memory_type: window
window_size: 5

엔티티 메모리

ai.memory.entity

대화에서 엔티티(사람, 장소, 개념) 추출 및 추적

Parameters:

NameTypeRequiredDefaultDescription
entity_typesmultiselectNo['person', 'organization', 'location']Types of entities to extract and track
extraction_modelselect (llm, spacy, regex)YesllmModel for entity extraction
session_idstringNo-Unique identifier for this memory session
track_relationshipsbooleanNoTrueTrack relationships between entities
max_entitiesnumberNo100Maximum number of entities to remember

Output:

FieldTypeDescription
memory_typestring기억할 최대 엔티티 수
session_idstring기억할 최대 엔티티 수
entitiesobject메모리 유형 (엔티티)
relationshipsarray세션 식별자
configobject유형별 추적된 엔티티

Example: People & Organizations

yaml
entity_types: ["person", "organization"]
extraction_model: llm

Example: Full Entity Tracking

yaml
entity_types: ["person", "organization", "location", "concept"]
track_relationships: true
max_entities: 200

Redis 메모리

ai.memory.redis

Redis 저장소를 사용한 영구 대화 메모리

Parameters:

NameTypeRequiredDefaultDescription
redis_urlstringYesredis://localhost:6379Redis connection URL
key_prefixstringNoflyto:memory:Prefix for all Redis keys
session_idstringYes-Unique identifier for this memory session
ttl_secondsnumberNo86400Time-to-live for memory entries (0 = no expiry)
max_messagesnumberNo100Maximum messages to store per session
load_on_startbooleanNoTrueLoad existing messages from Redis on initialization

Output:

FieldTypeDescription
memory_typestring초기화 시 Redis에서 기존 메시지 로드
session_idstring초기화 시 Redis에서 기존 메시지 로드
messagesarray메모리 유형 (redis)
connectedboolean세션 식별자
configobject로드된 메시지 기록

Example: Local Redis

yaml
redis_url: redis://localhost:6379
session_id: my-session
ttl_seconds: 3600

Example: Cloud Redis with Auth

yaml
redis_url: redis://:password@redis-cloud.example.com:6379
session_id: user-session
ttl_seconds: 86400
max_messages: 500

벡터 메모리

ai.memory.vector

관련 컨텍스트 검색을 위한 벡터 임베딩을 사용한 의미 메모리

Parameters:

NameTypeRequiredDefaultDescription
embedding_modelselect (text-embedding-3-small, text-embedding-3-large, text-embedding-ada-002, local)Yestext-embedding-3-smallModel to use for generating embeddings
top_knumberNo5Number of most relevant memories to retrieve
similarity_thresholdnumberNo0.7Minimum similarity score (0-1) for retrieval
session_idstringNo-Unique identifier for this memory session
include_metadatabooleanNoTrueInclude timestamp and other metadata with memories

Output:

FieldTypeDescription
memory_typestring메모리에 타임스탬프 및 기타 메타데이터 포함
session_idstring메모리에 타임스탬프 및 기타 메타데이터 포함
embedding_modelstring메모리 유형 (벡터)
configobject세션 식별자

Example: Default Vector Memory

yaml
embedding_model: text-embedding-3-small
top_k: 5

Example: High Precision Memory

yaml
embedding_model: text-embedding-3-large
top_k: 10
similarity_threshold: 0.85

AI 모델

ai.model

AI 에이전트용 LLM 모델 구성

Parameters:

NameTypeRequiredDefaultDescription
providerselect (openai, anthropic, ollama)NoopenaiAI model provider
modelstringNogpt-4oSpecific model to use
temperaturenumberNo0.7Creativity level (0=deterministic, 1=creative)
api_keystringNo-API key (defaults to provider env var)
base_urlstringNo-Custom API base URL (for Ollama or proxies)
max_tokensnumberNo4096응답의 최대 토큰

Output:

FieldTypeDescription
providerstring응답의 최대 토큰
modelstringLLM 제공자 이름
configobjectLLM 제공자 이름

Example: OpenAI GPT-4

yaml
provider: openai
model: gpt-4o
temperature: 0.7

Example: Anthropic Claude

yaml
provider: anthropic
model: claude-3-5-sonnet-20241022
temperature: 0.5

AI Tool

ai.tool

Expose a module as a tool for AI Agent

Parameters:

NameTypeRequiredDefaultDescription
module_idstringYes-Module ID to expose as tool (e.g. http.request, data.json_parse)
tool_descriptionstringNo-Custom description for the agent (overrides module default)

Output:

FieldTypeDescription
module_idstringModule ID exposed as tool

Example: HTTP Request Tool

yaml
module_id: http.request

Example: JSON Parse Tool

yaml
module_id: data.json_parse

비전 분석

ai.vision.analyze

AI 비전 모델을 사용하여 이미지 분석

Parameters:

NameTypeRequiredDefaultDescription
image_pathstringNo-이미지 파일의 로컬 경로
image_urlstringNo-분석할 이미지의 URL
promptstringNoDescribe this image in detail이미지에 대해 분석하거나 질문할 내용
providerselect (openai, anthropic)Noopenai비전 분석을 위한 AI 제공자
modelstringNogpt-4o사용할 비전 모델
api_keystringNo-API 키 (환경 변수로 대체 가능)
max_tokensnumberNo1000응답의 최대 토큰 수
detailselect (low, high, auto)Noauto이미지 세부 수준 (낮음/높음/자동)

Output:

FieldTypeDescription
analysisstring이미지에 대한 AI 분석
modelstring분석에 사용된 모델
providerstring분석에 사용된 제공자
tokens_usednumber사용된 토큰 수

Example: Analyze Screenshot

yaml
image_path: /tmp/screenshot.png
prompt: Describe what you see in this UI screenshot
provider: openai
model: gpt-4o

Example: Analyze from URL

yaml
image_url: https://example.com/photo.jpg
prompt: What objects are in this image?
provider: anthropic
model: claude-sonnet-4-20250514

Claude 채팅

api.anthropic.chat

Anthropic Claude AI에 채팅 메시지를 보내고 응답 받기

Parameters:

NameTypeRequiredDefaultDescription
api_keystringNo-Anthropic API 키 (기본값: env.ANTHROPIC_API_KEY)
modelstringNoclaude-3-5-sonnet-20241022사용할 Claude 모델
messagesarrayYes-role과 content가 포함된 메시지 객체 배열
max_tokensnumberNo1024작업에서 반환된 콘텐츠
temperaturenumberNo1.0샘플링 온도 (0-1). 높을수록 출력이 더 무작위
systemstringNo-Claude 동작을 안내하는 시스템 프롬프트

Output:

FieldTypeDescription
contentstringClaude 동작을 안내하는 시스템 프롬프트
modelstringClaude 응답 텍스트
stop_reasonstring응답에 사용된 모델
usageobject모델이 생성을 중단한 이유 (end_turn, max_tokens 등)

Example: Simple question

yaml
messages: [{"role": "user", "content": "What is the capital of France?"}]
max_tokens: 100

Example: Text summarization

yaml
system: You are a helpful assistant that summarizes text concisely.
messages: [{"role": "user", "content": "Summarize this article: ${article_text}"}]
max_tokens: 500

Google Gemini 채팅

api.google_gemini.chat

Google Gemini AI에 채팅 메시지를 보내고 응답 받기

Parameters:

NameTypeRequiredDefaultDescription
api_keystringNo-Google AI API 키 (기본값: env.GOOGLE_AI_API_KEY)
modelstringNogemini-1.5-pro사용할 Gemini 모델
promptstringYes-Gemini에 보낼 텍스트 프롬프트
temperaturenumberNo1.0무작위성 제어 (0-2). 높을수록 출력이 더 무작위
max_output_tokensnumberNo2048응답의 최대 토큰 수

Output:

FieldTypeDescription
textstringGenerated text response from Gemini
modelstringModel used for generation
candidatesarrayAll candidate responses

Example: Simple question

yaml
prompt: Explain quantum computing in simple terms

Example: Content generation

yaml
prompt: Write a professional email about ${topic}
temperature: 0.7
max_output_tokens: 500

OpenAI 채팅

api.openai.chat

OpenAI GPT 모델에 채팅 메시지 전송

Parameters:

NameTypeRequiredDefaultDescription
promptstringYes-GPT에 보낼 메시지
modelselect (gpt-4-turbo-preview, gpt-4, gpt-3.5-turbo)Nogpt-4-turbo-previewGPT에 보낼 메시지
temperaturenumberNo0.7샘플링 온도 (0-2)
max_tokensnumberNo1000샘플링 온도 (0-2)
system_messagestringNo-응답의 최대 토큰

Output:

FieldTypeDescription
responsestring시스템 역할 메시지 (선택사항)
modelstring작업의 응답
usageobject작업의 응답

Example: Simple chat

yaml
prompt: Explain quantum computing in 3 sentences
model: gpt-3.5-turbo

Example: Code generation

yaml
prompt: Write a Python function to calculate fibonacci numbers
model: gpt-4
temperature: 0.2
system_message: You are a Python programming expert

DALL-E 이미지 생성

api.openai.image

DALL-E를 사용하여 이미지 생성

Parameters:

NameTypeRequiredDefaultDescription
promptstringYes-생성할 이미지 설명
sizeselect (256x256, 512x512, 1024x1024, 1792x1024, 1024x1792)No1024x1024생성할 이미지 설명
modelselect (dall-e-3, dall-e-2)Nodall-e-3DALL-E 모델 버전
qualityselect (standard, hd)Nostandard이미지 품질 (DALL-E 3 전용)
nnumberNo1생성할 이미지 수 (1-10)

Output:

FieldTypeDescription
imagesarrayList of generated images
modelstringModel name or identifier

Example: Generate artwork

yaml
prompt: A serene mountain landscape at sunset, digital art
size: 1024x1024
model: dall-e-3
quality: hd

Example: Create logo

yaml
prompt: Modern tech startup logo with blue and green colors
size: 512x512
model: dall-e-2
n: 3

AI 에이전트

llm.agent

다중 포트 연결(모델, 메모리, 도구)이 있는 자율 AI 에이전트

Parameters:

NameTypeRequiredDefaultDescription
prompt_sourceselect (manual, auto)Nomanual작업 프롬프트를 가져올 위치
taskstringNo-에이전트가 완료할 작업. 업스트림 데이터를 참조하려면 {{input}}을 사용하세요.
prompt_pathstringNo{<!-- -->{input}<!-- -->}입력에서 프롬프트를 추출할 경로 (예: {{input.message}})
join_strategyselect (first, newline, separator, json)Nofirst배열 입력 처리 방법
join_separatorstringNo`

| 배열 항목 결합을 위한 구분자 | |max_input_size| number | No |10000| 프롬프트의 최대 문자 수 (오버플로 방지) | |system_prompt| string | No |You are a helpful AI agent. Use the available tools to complete the task. Think step by step.| 에이전트 동작을 위한 지침 | |tools| array | No |[]| 모듈 ID 목록 (도구 노드 연결 대안) | |context| object | No |{}| 모듈 ID 목록 (도구 노드 연결 대안) | |max_iterations| number | No |10| 에이전트를 위한 추가 컨텍스트 데이터 | |provider | select (openai, anthropic, ollama) | No | openai| AI model provider | |model| string | No |gpt-4o| Specific model to use | |temperature| number | No |0.3| Creativity level (0=deterministic, 1=creative) | |api_key| string | No | - | API key (defaults to provider env var) | |base_url` | string | No | - | Custom API base URL (for Ollama or proxies) |

Output:

FieldTypeDescription
okboolean에이전트가 성공적으로 완료되었는지 여부
resultstring에이전트가 성공적으로 완료되었는지 여부
stepsarray에이전트가 성공적으로 완료되었는지 여부
tool_callsnumber에이전트의 최종 결과
tokens_usednumber에이전트가 수행한 단계 목록

Example: Web Research Agent

yaml
task: Search for the latest news about AI and summarize the top 3 stories
tools: ["http.request", "data.json_parse"]
model: gpt-4o

Example: Data Processing Agent

yaml
task: Read the CSV file, filter rows where status is "active", and count them
tools: ["file.read", "data.csv_parse", "array.filter"]
model: gpt-4o

Released under the Apache 2.0 License.