Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions docs/docs/Components/bundles-altk.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: ALTK
slug: /bundles-altk
---

import Icon from "@site/src/components/icon";
import PartialParams from '@site/docs/_partial-hidden-params.mdx';

<Icon name="Blocks" aria-hidden="true" /> [**Bundles**](/components-bundle-components) contain custom components that support specific third-party integrations with Langflow.

The **ALTK Agent** implements the **JSON Processor** component from the [Agent Lifecycle Toolkit](https://github.com/AgentToolkit/agent-lifecycle-toolkit). This component processes large JSON tool responses by generating Python code on the fly to extract relevant data. This helps reduce context size and improves the agent's ability to work with large tool responses, especially when dealing with APIs that return extensive JSON data.

For more information, see the [Agent Lifecycle Toolkit documentation](https://agenttoolkit.github.io/agent-lifecycle-toolkit/).

For an example of the ALTK component in Langflow, see the video tutorial [ALTK in Langflow: Reliably handle JSON responses in your AI agent](https://www.youtube.com/watch?v=YNwPBK_KxXY).

### ALTK Agent parameters

<PartialParams />

| Name | Type | Description |
|------|------|-------------|
| agent_llm | Dropdown | Input parameter. The model provider the agent uses to generate responses. |
| enable_post_tool_reflection | Boolean | Input parameter. If enabled, tool outputs are automatically processed through JSON processing when the output is JSON and exceeds the size threshold. Default: `true`. |
| response_processing_size_threshold | Integer | Input parameter. Tool output is post-processed only if the response length exceeds this character threshold. Default: `100`. Advanced parameter. |
| tools | List[Tool] | Input parameter. The list of tools available to the agent. |
| system_prompt | String | Input parameter. The system prompt to provide context to the agent. |
| input_value | String | Input parameter. The user's input to the agent. |
| memory | Memory | Input parameter. The memory for the agent to use for context persistence. |
| max_iterations | Integer | Input parameter. The maximum number of iterations to allow the agent to execute. |
| verbose | Boolean | Input parameter. This determines whether to print out the agent's intermediate steps. |
| handle_parsing_errors | Boolean | Input parameter. This determines whether to handle parsing errors in the agent. |
| response | Message | Output parameter. The agent's response message. |
Comment thread
mendonk marked this conversation as resolved.
Outdated
2 changes: 1 addition & 1 deletion docs/docs/Components/components-processing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ Use the Path Selection operation to extract values from nested JSON structures w
3. In the **Select Paths** dropdown, select the path.
You can select paths such as `.user.profile.name` to extract "John Doe", or select `.user.settings.theme` to extract "dark".

### JQ Expression operation example
### JQ Expression operation example {#jq-expression-operation-examples}

Use the **JQ Expressions** operation to use the [jq](https://jqlang.org/) query language to perform more advanced JSON filtering.
1. In the **Operations** dropdown, select **JQ Expression**.
Expand Down
2 changes: 2 additions & 0 deletions docs/docs/Support/release-notes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ For all changes, see the [Changelog](https://github.com/langflow-ai/langflow/rel

New [**Mock Data** component](/components-data#mock-data)

New [**ALTK** bundle](/bundles-altk)

New [**CometAPI** bundle](/bundles-cometapi)

New [**Docling Remote VLM** component](/bundles-docling#docling-remote-vlm)
Expand Down
1 change: 1 addition & 0 deletions docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ module.exports = {
items: [
"Components/components-bundles",
"Components/bundles-aiml",
"Components/bundles-altk",
"Components/bundles-amazon",
"Components/bundles-anthropic",
"Components/bundles-apify",
Expand Down
Loading