Provides default LangGraph configuration at the application level.
Use this in your application's providers array to set defaults like
apiUrl that will be used by all useStream and injectStream calls.
provideStreamDefaults(defaults: StreamDefaults): EnvironmentProviders| Name | Type | Description |
|---|---|---|
defaults* | StreamDefaults |
// app.config.ts
import { ApplicationConfig } from "@angular/core";
import { provideStreamDefaults } from "@langchain/angular";
export const appConfig: ApplicationConfig = {
providers: [
provideStreamDefaults({
apiUrl: "http://localhost:2024",
}),
],
};