Skip to main content
Langbase logo
  • Category: ai agents
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 20
  • Triggers: 0
  • Slug: LANGBASE
  • Version: 20261101_00

Tools

Slug: LANGBASE_APPEND_THREAD_MESSAGESTool to add new messages to an existing conversation thread. Use when continuing a chat session or adding context to a thread.

Input Parameters

array
required
Array of one or more messages to append to the thread. Each message must have at minimum a ‘role’ field.
string
required
Unique identifier of the thread to append messages to.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LANGBASE_CHECK_HEALTHTool to check the health status of the Langbase API service. Use when you need to verify API availability.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LANGBASE_CHUNKER_SPLIT_CONTENTTool to split content into smaller chunks. Use when processing large text segments to fit downstream limits.

Input Parameters

string
required
The input text content to be chunked.
integer
Number of characters to overlap between consecutive chunks. Must be ≥256 and < chunk_size.
integer
Desired size of each chunk in characters. Must be between 1024 and 30000. Default: 1024.
string ("basic" | "semantic")
Mode for chunking. Use ‘semantic’ to preserve sentence boundaries; ‘basic’ for fixed-size splits.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LANGBASE_CREATE_THREADTool to create a new conversation thread. Use when starting a fresh chat session or grouping messages into a distinct thread.

Input Parameters

array
Optional initial messages for the thread
object
Key-value pairs to store with the thread for organizational purposes
string
Custom thread identifier. If not provided, a unique ID will be generated.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LANGBASE_DELETE_THREADTool to delete a thread that is no longer needed to manage conversation history. Use when you need to permanently remove a thread by its ID.

Input Parameters

string
required
The unique identifier of the thread to delete

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LANGBASE_DELETE_THREAD_MESSAGETool to delete a specific message from a conversation thread. Use when you need to remove a message from a thread by its ID.

Input Parameters

string
required
The unique identifier of the thread containing the message
string
required
The unique identifier of the message to delete

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LANGBASE_DOCUMENT_LISTList document metadata in a specific Langbase memory. The request can include limit and startAfter parameters.

Input Parameters

integer
Maximum number of documents to return
string
required
Name of the memory to list documents from
string
Pagination token to start after a specific document
boolean
Whether to include vector embeddings in each document

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LANGBASE_GET_PIPETool to retrieve details of a specific pipe by owner and name. Use when you need to fetch configuration and settings of a particular pipe.

Input Parameters

string
required
The name of the pipe to retrieve
string
required
The login/username of the pipe owner

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LANGBASE_GET_THREADTool to retrieve details of a specific conversation thread. Use when you need the full thread details by its ID after confirming its existence.

Input Parameters

string
required
The unique identifier of the thread to retrieve

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LANGBASE_LIST_MODELSTool to get available AI models supported by Langbase. Use to discover text and image generation models from various providers.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LANGBASE_LIST_THREAD_MESSAGESList messages in a Langbase conversation thread by thread ID to review its conversation history. You can optionally request a page using a limit and a before-message cursor; messages are returned in chronological order.

Input Parameters

integer
Number of messages to return per page.
string
Return messages created before this message ID.
string
required
Unique identifier of the conversation thread.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LANGBASE_LIST_TRACESTool to get execution traces for debugging and monitoring pipe runs. Use when you need to retrieve trace logs for a specific primitive.

Input Parameters

integer
Maximum number of traces to return
string ("asc" | "desc")
Order for trace results
integer
Number of traces to skip for pagination
string
required
ID of the primitive (pipe) to get traces for
string
required
Name of the primitive (pipe) to get traces for

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LANGBASE_MEMORY_CREATETool to create a new memory. Use when storing a new memory record in Langbase after confirming memory details.

Input Parameters

string
required
The name (identifier) of the memory.
integer
Number of chunks to return. Default 10, range 1-100.
integer
Maximum number of characters in a single chunk. Default 10000, min 1024, max 30000.
string
A short description of the memory.
integer
Number of characters to overlap between chunks. Default 2048, min 256, must be less than chunk_size.
string
The embedding model to use. Supported: ‘openai:text-embedding-3-large’, ‘cohere:embed-v4.0’, ‘cohere:embed-multilingual-v3.0’, ‘cohere:embed-multilingual-light-v3.0’, ‘google:text-embedding-004’. Defaults to ‘openai:text-embedding-3-large’.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LANGBASE_MEMORY_DELETETool to delete a specific memory. Use when you need to permanently remove a stored memory by its name.

Input Parameters

string
required
Name of the memory to delete

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LANGBASE_MEMORY_LISTTool to list all memory objects. Use when you need to fetch stored memories for context retrieval.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LANGBASE_PIPE_CREATECreate a Langbase pipe with configurable settings, or update an existing pipe with the same name when upsert is enabled. Returns a pipe object including its API key and URL.

Input Parameters

boolean
Enforce the output to be in JSON format
string
required
Name of the pipe
array
Up to 4 sequences where the API will stop generating further tokens
string
Pipe LLM model in format ‘provider:model_id’
boolean
If enabled, both prompt and completions will be stored
number
Nucleus sampling parameter between 0.0 and 1.0
string ("public" | "private")
Visibility status of the pipe
boolean
If enabled, the output will be streamed in real-time
boolean
Upsert pipe. If true, updates existing pipe with same name
boolean
If enabled, Langbase blocks flagged requests automatically
integer
Maximum number of tokens in the response
string
Short description of the pipe
number
Sampling temperature between 0.0 and 2.0
string ("auto" | "required")
Controls which (if any) tool is called by the model
number
Penalizes a word based on its occurrence in the input text
number
Penalizes a word based on how frequently it appears in the training data
boolean
If true, calls multiple tools in parallel

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LANGBASE_PIPE_LISTList pipes in the authenticated Langbase account, returning pipe objects in a pipes collection.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LANGBASE_UPDATE_PIPETool to update an existing pipe’s configuration on Langbase. Use when modifying model settings, parameters, prompts, tools, or memory. The pipe must already exist.

Input Parameters

boolean
Enforce the output to be in JSON format
string
New name for the pipe
array
Up to 4 sequences where the API will stop generating further tokens
string
Pipe LLM model in format ‘provider:model_id’
boolean
If enabled, both prompt and completions will be stored
array
List of tools to make available to the pipe
number
Nucleus sampling parameter between 0.0 and 1.0
array
List of memory objects to attach to the pipe
string ("public" | "private")
Visibility status of the pipe
boolean
If enabled, the output will be streamed in real-time
array
List of messages to configure the pipe’s prompts
boolean
If enabled, Langbase blocks flagged requests automatically
string
required
Name of the pipe to update
string
Variables for the pipe, can be an array or object
integer
Maximum number of tokens in the response
string
Short description of the pipe
number
Sampling temperature between 0.0 and 2.0
string
Controls which (if any) tool is called by the model. Can be a string like ‘auto’ or ‘required’, or a structured ToolChoice object
number
Penalizes a word based on its occurrence in the input text
boolean
If true, regenerates the API key for this pipe
number
Penalizes a word based on how frequently it appears in the training data
boolean
If true, calls multiple tools in parallel

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LANGBASE_UPDATE_THREADTool to update an existing thread’s metadata. Use when you need to modify metadata fields for managing and organizing conversation threads.

Input Parameters

object
Key-value pairs to store with the thread for organizational purposes. Each value must be a string with max length of 2048 characters.
string
required
The unique identifier of the thread to update

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LANGBASE_UPDATE_THREAD_MESSAGETool to update an existing message in a conversation thread. Use when you need to modify the content or metadata of a specific message.

Input Parameters

string
Updated text content of the message
object
Key-value pairs to store with the message. Each value must be a string with max length of 2048 characters.
string
required
Unique identifier of the thread containing the message
string
required
Unique identifier of the message to update

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not