Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,14 @@ const completedTools = computed(() =>
agent.toolCalls().filter((tool) => tool.status === 'complete')
);

// Each entry has: name, args, result, duration
// Each entry has: id, name, args, status, result, error
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
template: `
@for (call of completedTools(); track call.id) {
<details>
<summary>
{{ call.name }}
<span class="duration">{{ call.duration }}ms</span>
</summary>
<div class="args">
<h4>Input</h4>
Expand Down Expand Up @@ -417,11 +416,11 @@ interface OrchestratorState {

<aside class="agent-panel">
<h3>Active Delegated Work</h3>
@for (tool of activeTools(); track tool.toolCallId ?? tool.name) {
@for (tool of activeTools(); track tool.id) {
<app-agent-card
[name]="tool.name"
[status]="tool.state"
[input]="tool.input" />
[status]="tool.status"
[input]="tool.args" />
}
</aside>

Expand Down Expand Up @@ -524,7 +523,7 @@ export class AgentComponent {
| Agent exceeds recursion limit | Graph raises `GraphRecursionError` | `error()` fires with recursion message |

<Callout type="warning" title="Recursion limits">
LangGraph defaults to 25 recursion steps. If your agent loops between `model` and `tools` more than 25 times, it stops with a `GraphRecursionError`. Increase the limit in production with `graph.compile(recursion_limit=50)` or redesign the agent to converge faster.
LangGraph defaults to 25 recursion steps. If your agent loops between `model` and `tools` more than 25 times, it stops with a `GraphRecursionError`. Increase the limit in production by passing it in the run config — `graph.invoke(input, config={"recursion_limit": 50})` — or redesign the agent to converge faster.
</Callout>

## Checkpointing and Debugging
Expand Down
2 changes: 1 addition & 1 deletion apps/website/content/docs/langgraph/guides/interrupts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ export class DeployApprovalComponent {
return (step.completed.length / step.total_steps) * 100;
});

allInterrupts = computed(() => this.agent.interrupts());
allInterrupts = computed(() => this.agent.langGraphInterrupts());

approveStep() {
this.agent.submit({ resume: { approved: true } });
Expand Down
Loading