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 @@ -33,7 +33,6 @@ export function Sidebar({ isMobile, onMobileClose }: SidebarProps) {
const pathname = usePathname();
const { theme, setTheme } = useTheme();
const isDarkTheme = theme === "dark"
console.log(isDarkTheme)
const { view, frameworkPickerHidden, viewPickerHidden, featurePickerHidden, setView} = useURLParams();

// Extract the current integration ID from the pathname
Expand Down
9 changes: 5 additions & 4 deletions typescript-sdk/integrations/langgraph/src/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export class LangGraphAgent extends AbstractAgent {
checkpointId: fork.checkpoint.checkpoint_id!,
streamMode,
}),
state: timeTravelCheckpoint,
state: timeTravelCheckpoint as ThreadState<State>,
streamMode,
};
}
Expand Down Expand Up @@ -486,7 +486,7 @@ export class LangGraphAgent extends AbstractAgent {
this.endStep()
this.dispatchEvent({
type: EventType.STATE_SNAPSHOT,
snapshot: this.getStateSnapshot(state.values),
snapshot: this.getStateSnapshot(state),
});
this.dispatchEvent({
type: EventType.MESSAGES_SNAPSHOT,
Expand Down Expand Up @@ -707,7 +707,7 @@ export class LangGraphAgent extends AbstractAgent {
this.activeRun!.manuallyEmittedState = event.data;
this.dispatchEvent({
type: EventType.STATE_SNAPSHOT,
snapshot: this.getStateSnapshot(this.activeRun!.manuallyEmittedState!),
snapshot: this.getStateSnapshot({ values: this.activeRun!.manuallyEmittedState! } as ThreadState<State>),
rawEvent: event,
});
}
Expand Down Expand Up @@ -767,7 +767,8 @@ export class LangGraphAgent extends AbstractAgent {
}
}

getStateSnapshot(state: State) {
getStateSnapshot(threadState: ThreadState<State>) {
let state = threadState.values
const schemaKeys = this.activeRun!.schemaKeys!;
// Do not emit state keys that are not part of the output schema
if (schemaKeys?.output) {
Expand Down
Loading