Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@copilotkit/runtime

CopilotKit206.1kMIT1.50.1TypeScript support: included

banner

copilotkit, copilot, react, nextjs, nodejs, ai, assistant, javascript, automation, textarea

readme

CopilotKit - Runtime

banner

✨ Why CopilotKit?

  • Minutes to integrate - Get started quickly with our CLI
  • Framework agnostic - Works with React, Next.js, AGUI and more
  • Production-ready UI - Use customizable components or build with headless UI
  • Built-in security - Prompt injection protection
  • Open source - Full transparency and community-driven
class-support-ecosystem

🧑‍💻 Real life use cases

Deploy deeply-integrated AI assistants & agents that work alongside your users inside your applications.

headless-ui

Documentation

To get started with CopilotKit, please check out the documentation.

Analytics & Privacy

CopilotKit uses Scarf for anonymous usage analytics to help improve the product. Scarf handles all privacy compliance and does not store raw IP addresses. This helps us understand how CopilotKit is being used and prioritize improvements.

Opting Out

To disable analytics, set the environment variable:

export COPILOTKIT_TELEMETRY_DISABLED=true

Or use the DO_NOT_TRACK standard:

export DO_NOT_TRACK=1

changelog

@copilotkit/runtime

1.50.1

Patch Changes

  • 80dffec: Updated the default model and API version for the Google GenAI adapter
  • eac8b20: - fix: use latest vnext
  • Updated dependencies [80dffec]

1.50.1-next.3

Patch Changes

1.50.1-next.2

Patch Changes

1.50.1-next.1

Patch Changes

1.50.1-next.0

Patch Changes

1.50.0

Minor Changes

  • 0fc76d7: add new runner with telemetry baked in
  • c942f9c: Minor fixes and stability improvements
  • bad5f06: - feat: port old endpoint creators to 2.0
  • eed6021: Updating to the latest version of vnext
  • 3b7367e: Improving general stability around LangChain
  • 7ff9ca7: Minor fixes and improvements
  • 5a6029e: - fix(runtime): Update method for merging tools in assignToolsToAgent
    • feat(runtime): Export v2 of the runtime as a subpackage
  • 974875e: Lint and format code to resolve Prettier errors
  • 4942f62: - feat: create rerouting CopilotRuntime
  • 3bd484f: Minor fixes and stability improvements
  • 5a534bf: fix telemetry in v1.50 runtime
  • 769a06c: Refactor suggestions to not always run
  • 788292b: Improving langchain dependency resolution
  • eab69a2: Enabling the new inspector
  • 0a7bfe0: Updating dependency versions across all packages

Patch Changes

  • b780092: - fix: treeshake and make providers optional
  • b0e3652: - chore: Update to latest of vnext
  • d55a8bd: - feat(runtime): export v2 of the runtime as a subpackage
    • fix(runtime): update method for merging tools in assignToolsToAgent
    • fix: remove redundant agent instantiation code
  • aee1e42: - fix: use hono node directly instead of express for the node http integration
  • 18ba908: - fix: unpack and set agents as promise, to avoid delaying runtime instantiation
  • c70210e: - feat: use copilotnext's single endpoint
  • Updated dependencies [0fc76d7]
  • Updated dependencies [c942f9c]
  • Updated dependencies [b0e3652]
  • Updated dependencies [eed6021]
  • Updated dependencies [3b7367e]
  • Updated dependencies [7ff9ca7]
  • Updated dependencies [974875e]
  • Updated dependencies [4942f62]
  • Updated dependencies [3bd484f]
  • Updated dependencies [5a534bf]
  • Updated dependencies [769a06c]
  • Updated dependencies [788292b]
  • Updated dependencies [eab69a2]
  • Updated dependencies [0a7bfe0]

1.50.0-beta.19

Minor Changes

  • Improving langchain dependency resolution

Patch Changes

1.50.0-beta.18

Minor Changes

  • Improving general stability around LangChain

Patch Changes

1.50.0-beta.17

Minor Changes

  • Minor fixes and improvements

Patch Changes

1.50.0-beta.16

Minor Changes

  • Minor fixes and stability improvements

Patch Changes

1.50.0-beta.15

Minor Changes

  • Lint and format code to resolve Prettier errors

Patch Changes

1.50.0-beta.14

Minor Changes

  • Minor fixes and stability improvements

Patch Changes

1.50.0-beta.13

Minor Changes

  • Updating to the latest version of vnext

Patch Changes

1.50.0-beta.12

Minor Changes

  • eab69a2: Enabling the new inspector

Patch Changes

1.50.0-beta.11

Minor Changes

  • fix telemetry in v1.50 runtime

Patch Changes

1.50.0-beta.10

Minor Changes

  • add new runner with telemetry baked in

Patch Changes

1.50.0-beta.9

Minor Changes

  • Refactor suggestions to not always run

Patch Changes

1.50.0-beta.8

Patch Changes

1.50.0-beta.7

Patch Changes

1.50.0-beta.6

Minor Changes

  • Updating dependency versions across all packages

Patch Changes

1.50.0-beta.4

Minor Changes

  • bad5f06: - feat: port old endpoint creators to 2.0
  • 5a6029e: - fix(runtime): Update method for merging tools in assignToolsToAgent
    • feat(runtime): Export v2 of the runtime as a subpackage
  • 4942f62: - feat: create rerouting CopilotRuntime

Patch Changes

  • b780092: - fix: treeshake and make providers optional
  • b0e3652: - chore: Update to latest of vnext
  • d55a8bd: - feat(runtime): export v2 of the runtime as a subpackage
    • fix(runtime): update method for merging tools in assignToolsToAgent
    • fix: remove redundant agent instantiation code
  • aee1e42: - fix: use hono node directly instead of express for the node http integration
  • 18ba908: - fix: unpack and set agents as promise, to avoid delaying runtime instantiation
  • c70210e: - feat: use copilotnext's single endpoint
  • Updated dependencies [b0e3652]
  • Updated dependencies [4942f62]

1.10.7-next.0

Patch Changes

1.10.6

Patch Changes

  • 01e0a4b: - fix: use all AGUI as peer dependencies
  • e0dd5d5: - feat: allow additional config in direct to llm actions
  • 7455309: - feat: use latest agui langgraph integration packages
  • Updated dependencies [e0dd5d5]

1.10.6-next.6

Patch Changes

1.10.6-next.5

Patch Changes

1.10.6-next.4

Patch Changes

1.10.6-next.3

Patch Changes

1.10.6-next.2

Patch Changes

1.10.6-next.1

Patch Changes

1.10.6-next.0

Patch Changes

1.10.5

Patch Changes

  • b7bc3a0: - feat: pass copilot readable context to agui agents
  • f199c94: - feat: update agui packages
  • 7467f97: - feat: add stop generation callback and call abort agui agent
  • e730369: - feat: use latest agui langgraph package
    • feat: use latest agui fastapi langgraph package and dependencies
  • c9e32b0: - fix: upgrade agui langgraph version
  • 23fe6a1: - chore: publish python sdk using latest agui

1.10.5-next.10

Patch Changes

1.10.5-next.9

Patch Changes

1.10.5-next.8

Patch Changes

1.10.5-next.7

Patch Changes

1.10.5-next.6

Patch Changes

1.10.5-next.5

Patch Changes

1.10.5-next.4

Patch Changes

1.10.5-next.3

Patch Changes

1.10.5-next.2

Patch Changes

1.10.5-next.1

Patch Changes

1.10.5-next.0

Patch Changes

1.10.4

Patch Changes

  • a640d8e: - feat: update latest agui langgraph for subgraphs support
    • feat: update latest agui core packages
  • Updated dependencies [a640d8e]

1.10.4-next.3

Patch Changes

1.10.4-next.2

Patch Changes

1.10.4-next.1

Patch Changes

  • a640d8e: - feat: update latest agui langgraph for subgraphs support
    • feat: update latest agui core packages
  • Updated dependencies [a640d8e]

1.10.4-next.0

Patch Changes

1.10.3

Patch Changes

  • ea74047: - fix: surface run errors from agui
  • a7bb2f0: - fix: fix how node names are read to support newer langgraph versions
  • 21e12af: - feat: send streamSubgraphs forwarded prop to AGUI
  • Updated dependencies [ea74047]

1.10.3-next.3

Patch Changes

1.10.3-next.2

Patch Changes

1.10.3-next.1

Patch Changes

1.10.3-next.0

Patch Changes

1.10.2

Patch Changes

1.10.2-next.0

Patch Changes

1.10.1

Patch Changes

1.10.1-next.2

Patch Changes

1.10.1-next.1

Patch Changes

1.10.1-next.0

Patch Changes

1.10.0

Patch Changes

  • 1abcecf: - fix: add graphqlContext to constructAGUIRemoteAction for enhanced agent properties

    • Updated constructAGUIRemoteAction to accept graphqlContext, allowing forwarding of properties like Authorization token to the agent.
    • Modified setupRemoteActions to include graphqlContext in the parameters.
  • 6f2f54b: - fix(openai): update maxTokens parameter to max_completion_tokens in OpenAIAdapter

  • b5b94b9: - fix: throw errors when they happen with agui streams
  • 824fb69: - fix: pass config to the forwarded props of an agui agent
  • 59b0e16: - feat: add native prompt caching support to AnthropicAdapter
  • a31443c: removed unused dependency on ip module
  • dc6df18: - feat: use latest agui langgraph package
    • chore: release python sdk 0.1.58
  • Updated dependencies [a8c0263]
  • Updated dependencies [8674da1]
  • Updated dependencies [6d1de58]

1.10.0-next.13

Patch Changes

1.10.0-next.12

Patch Changes

1.10.0-next.11

Patch Changes

1.10.0-next.10

Patch Changes

1.10.0-next.9

Patch Changes

1.10.0-next.8

Patch Changes

1.10.0-next.7

Patch Changes

1.10.0-next.6

Patch Changes

1.10.0-next.5

Patch Changes

1.10.0-next.4

Patch Changes

1.10.0-next.3

Patch Changes

1.10.0-next.2

Patch Changes

1.10.0-next.1

Patch Changes

  • 1abcecf: - fix: add graphqlContext to constructAGUIRemoteAction for enhanced agent properties

    • Updated constructAGUIRemoteAction to accept graphqlContext, allowing forwarding of properties like Authorization token to the agent.
    • Modified setupRemoteActions to include graphqlContext in the parameters.
    • @copilotkit/shared@1.10.0-next.1

1.10.0-next.0

Patch Changes

1.9.3

Patch Changes

  • 1bda332: - chore(telemetry): integrate Scarf for usage analytics
  • df25f34: - feat: add agui fastAPI compatible langgraph agent
    • chore: release 0.1.55 with agui langgraph fastapi support
  • 589ae52: - adds scarf deps to runtime
  • 88ceae2: - upgrade AG-UI packages
  • Updated dependencies [1bda332]

1.9.3-next.4

Patch Changes

1.9.3-next.3

Patch Changes

1.9.3-next.2

Patch Changes

  • df25f34: - feat: add agui fastAPI compatible langgraph agent

1.9.3-next.1

Patch Changes

1.9.3-next.0

Patch Changes

1.9.2

Patch Changes

  • f3f0181: - fix: connect streaming errors to runtime onError handler
    • remove request logging
  • 3a7f45f: - fix: resolve agui agents only after all other endpoints
  • fac89c2: - refactor: rename onTrace to onError throughout codebase

    • Rename CopilotTraceEvent to CopilotErrorEvent and CopilotTraceHandler to CopilotErrorHandler
  • 7ca7023: - feat: send node name to agui agent

  • 54b62f0: - fix: add default schema keys for input and output of agui langgraph
  • 4fd92d1: - fix: enable resolving of langgraph agents when cpk starts
  • 1f4949a: - fix: remove agent discovery for agui agents
  • 9169ad7: - feat: add onTrace handler for runtime and UI error/event tracking
  • f3f0181: - fix: connect streaming errors to runtime onError handler
  • 8e67158: - fixes gemini adapter
  • 83822d2: - fix: do not show error on state loading if thread does not exist
  • fe9009c: - feat(langgraph): new thread metadata
  • f295375: - fix: remove all agents as tools when there is an active agent session
    • fix formatting
  • 9b986ba: - fix: use active interrupt from thread instead of saving to global state
  • 1d1c51d: - feat: surface all errors in structured format
  • dec5527: - fix: only fetch agent state for langgraph agents
  • 9b81464: - fix: use latest langgraph agui
  • 10345a5: - feat: structured error visibility system for streaming errors
  • 8ef8199: - fix: use latest agui dependencies to include required fixes
  • 20e8c3c: - fix(anthropic-adapter): resolve infinite loop caused by duplicate result messages
  • 9169ad7: - feat: add onTrace handler for comprehensive debugging and observability - Add CopilotTraceEvent interfaces with rich debugging context, implement runtime-side tracing with publicApiKey gating, add UI-side error tracing, include comprehensive test coverage, and fix tsup build config to exclude test files
    • fix: extract publicApiKey for all requests + trace GraphQL errors
  • fc6b653: - Fix extract toolParameters in extractParametersFromSchema
    • Ensures consistency in how parameters are passed to the execute function across the codebase.
  • fc6b653: - Fix extract toolParameters in extractParametersFromSchema
    • Fixed generateMcpToolInstructions to properly extract parameters from schema.parameters.properties
    • fix: enhance MCP schema support for complex types and remove duplicate headers
  • fc6b653: - Fix extract toolParameters in extractParametersFromSchema
  • Updated dependencies [fac89c2]
  • Updated dependencies [9169ad7]
  • Updated dependencies [1d1c51d]
  • Updated dependencies [10345a5]
  • Updated dependencies [9169ad7]

1.9.2-next.26

Patch Changes

1.9.2-next.25

Patch Changes

  • f3f0181: - fix: connect streaming errors to runtime onError handler
    • remove request logging
  • f3f0181: - fix: connect streaming errors to runtime onError handler

1.9.2-next.24

Patch Changes

1.9.2-next.23

Patch Changes

  • fc6b653: - Fix extract toolParameters in extractParametersFromSchema
    • Ensures consistency in how parameters are passed to the execute function across the codebase.
  • fc6b653: - Fix extract toolParameters in extractParametersFromSchema
    • Fixed generateMcpToolInstructions to properly extract parameters from schema.parameters.properties
    • fix: enhance MCP schema support for complex types and remove duplicate headers
  • fc6b653: - Fix extract toolParameters in extractParametersFromSchema

1.9.2-next.22

Patch Changes

1.9.2-next.21

Patch Changes

1.9.2-next.20

Patch Changes

1.9.2-next.19

Patch Changes

1.9.2-next.18

Patch Changes

  • fac89c2: - refactor: rename onTrace to onError throughout codebase

    • Rename CopilotTraceEvent to CopilotErrorEvent and CopilotTraceHandler to CopilotErrorHandler
  • Updated dependencies [fac89c2]

1.9.2-next.17

Patch Changes

1.9.2-next.16

Patch Changes

1.9.2-next.15

Patch Changes

1.9.2-next.14

Patch Changes

1.9.2-next.13

Patch Changes

1.9.2-next.12

Patch Changes

1.9.2-next.11

Patch Changes

1.9.2-next.10

Patch Changes

1.9.2-next.9

Patch Changes

1.9.2-next.8

Patch Changes

1.9.2-next.7

Patch Changes

1.9.2-next.6

Patch Changes

1.9.2-next.5

Patch Changes

1.9.2-next.4

Patch Changes

  • 9169ad7: - feat: add onTrace handler for runtime and UI error/event tracking
  • 9169ad7: - feat: add onTrace handler for comprehensive debugging and observability - Add CopilotTraceEvent interfaces with rich debugging context, implement runtime-side tracing with publicApiKey gating, add UI-side error tracing, include comprehensive test coverage, and fix tsup build config to exclude test files
    • fix: extract publicApiKey for all requests + trace GraphQL errors
  • Updated dependencies [9169ad7]
  • Updated dependencies [9169ad7]

1.9.2-next.3

Patch Changes

1.9.2-next.2

Patch Changes

1.9.2-next.1

Patch Changes

1.9.2-next.0

Patch Changes

1.9.1

Patch Changes

1.9.1-next.0

Patch Changes

1.9.0

Minor Changes

  • 8408d58: - feat: create copilotkit agui langgraph agent
    • docs: replace remote endpoint with AGUI agent

Patch Changes

  • c120e07: - refactor(react-ui): pass full message to onThumbsUp and onThumbsDown handlers
  • 54cae30: - fix(react-core): allow custom toolChoice in forwardedParameters to override default
    • fix: move react-dom to peerDependencies in @copilotkit/react-textarea
    • feat: add amazon bedrock adapter support
    • @copilotkit/shared@1.9.0

1.9.0-next.2

Minor Changes

  • 8408d58: - feat: create copilotkit agui langgraph agent
    • docs: replace remote endpoint with AGUI agent

Patch Changes

1.8.15-next.1

Patch Changes

  • 54cae30: - fix(react-core): allow custom toolChoice in forwardedParameters to override default

1.8.15-next.0

Patch Changes

1.8.14

Patch Changes

  • ddd4165: - fix(runtime): filter empty AIMessages in GoogleGenerativeAIAdapter
    • fix(runtime): filter empty text messages in AnthropicAdapter
  • 9d33836: - fix: prepare cpk agui wiring for ag-ui langgraph support
  • 12b8ca8: - fix: fix cpk agui wiring for langgraph
  • ddd4165: - fix(runtime): filter empty AIMessages in GoogleGenerativeAIAdapter
  • 1af7333: - docs: updates ag-ui agent interface
  • Updated dependencies [34a78d8]

1.8.14-next.5

Patch Changes

  • ddd4165: - fix(runtime): filter empty AIMessages in GoogleGenerativeAIAdapter
    • fix(runtime): filter empty text messages in AnthropicAdapter
  • ddd4165: - fix(runtime): filter empty AIMessages in GoogleGenerativeAIAdapter

1.8.14-next.4

Patch Changes

1.8.14-next.3

Patch Changes

1.8.14-next.2

Patch Changes

1.8.14-next.1

Patch Changes

1.8.14-next.0

Patch Changes

1.8.13

Patch Changes

1.8.13-next.3

Patch Changes

1.8.13-next.2

Patch Changes

1.8.13-next.1

Patch Changes

1.8.13-next.0

Patch Changes

1.8.12

Patch Changes

  • 54838cb: - feat: allow keeping system role for openai adapters
  • 2b89ad7: - fix: use latest claude 3.5 as default model instead of specific
    • chore: add missing variable assignment in llm provider docs
    • chore: add missing call to fetch azure api key in docs
  • f419d99: - fix: Implement allowlist approach to prevent duplicate tool_result blocks in API calls to OpenAI and Anthropic

1.8.12-next.6

Patch Changes

1.8.12-next.5

Patch Changes

1.8.12-next.4

Patch Changes

  • f419d99: - fix: Implement allowlist approach to prevent duplicate tool_result blocks in API calls to OpenAI and Anthropic

1.8.12-next.3

Patch Changes

1.8.12-next.2

Patch Changes

1.8.12-next.1

Patch Changes

1.8.12-next.0

Patch Changes

  • 2b89ad7: - fix: use latest claude 3.5 as default model instead of specific

1.8.11

Patch Changes

  • 52d0bb5: - fix: do not attempt to hash lgc key if it doesnt exist

1.8.11-next.1

Patch Changes

1.8.11-next.0

Patch Changes

1.8.10

Patch Changes

  • f3a0a33: - updates ag-ui deps
  • 742efbb: - feat: enable setting langgraph config from ui

1.8.10-next.3

Patch Changes

1.8.10-next.2

Patch Changes

1.8.10-next.1

Patch Changes

1.8.10-next.0

Patch Changes

1.8.9

Patch Changes

1.8.9-next.0

Patch Changes

1.8.8

Patch Changes

  • 8c26335: - fix: update MCP tool parameter extraction to handle full tool objects
  • dfb67c3: - refactor: rename mcpEndpoints to mcpServers for naming consistency

1.8.8-next.1

Patch Changes

1.8.8-next.0

Patch Changes

1.8.7

Patch Changes

  • 8b8474f: - feat: add image input support with multi-model compatibility, pasting, and UX improvements

1.8.7-next.0

Patch Changes

1.8.6

Patch Changes

  • 7a04bd1: - fix: fix how results are communicated back on interrupt

1.8.6-next.0

Patch Changes

  • 7a04bd1: - fix: fix how results are communicated back on interrupt

1.8.5

Patch Changes

  • c0d3261: - full AWP support

    Signed-off-by: Tyler Slaton tyler@copilotkit.ai

    • refactor: address linter issues with the new pages

    Signed-off-by: Tyler Slaton tyler@copilotkit.ai

    • Merge branch 'mme/acp' into mme/mastra
    • add sse example
    • Create small-turkeys-agree.md
    • upgrade AWP
    • Merge branch 'mme/mastra' of github.com:CopilotKit/CopilotKit into mme/mastra
    • make agents a dict
    • update docs
    • send tools
    • update to latest packages
    • fix problem where state sync are preventing tool calls
    • set possibly undefined toolCalls to an empty array
    • fix missing tool call ids
  • 77a7457: - feat: Add Model Context Protocol (MCP) support

  • 76d9ef9: - fix: handle langgraph client specific errors when running lgc stream
  • c0d3261: - add AWP support

    • make it work
    • update docs
    • refactor: move UI files to be normal NextJS pages and update generation

    Signed-off-by: Tyler Slaton tyler@copilotkit.ai

    • refactor: address linter issues with the new pages

    Signed-off-by: Tyler Slaton tyler@copilotkit.ai

    • Merge branch 'mme/acp' into mme/mastra
    • add sse example
  • d0e8a1e: - fix: fix duplicate messages on regenerate

1.8.5-next.5

Patch Changes

  • c0d3261: - full AWP support

    Signed-off-by: Tyler Slaton tyler@copilotkit.ai

    • refactor: address linter issues with the new pages

    Signed-off-by: Tyler Slaton tyler@copilotkit.ai

    • Merge branch 'mme/acp' into mme/mastra
    • add sse example
    • Create small-turkeys-agree.md
    • upgrade AWP
    • Merge branch 'mme/mastra' of github.com:CopilotKit/CopilotKit into mme/mastra
    • make agents a dict
    • update docs
    • send tools
    • update to latest packages
    • fix problem where state sync are preventing tool calls
    • set possibly undefined toolCalls to an empty array
    • fix missing tool call ids
  • c0d3261: - add AWP support

    • make it work
    • update docs
    • refactor: move UI files to be normal NextJS pages and update generation

    Signed-off-by: Tyler Slaton tyler@copilotkit.ai

    • refactor: address linter issues with the new pages

    Signed-off-by: Tyler Slaton tyler@copilotkit.ai

1.8.5-next.4

Patch Changes

1.8.5-next.3

Patch Changes

1.8.5-next.2

Patch Changes

1.8.5-next.1

Patch Changes

1.8.5-next.0

Patch Changes

1.8.4

Patch Changes

  • e652aac: - feat: add support for langgraph config schema
  • f363760: - fix: when unable to find specified agent, show what's available
  • Updated dependencies [f363760]

1.8.4-next.4

Patch Changes

1.8.4-next.3

Patch Changes

1.8.4-next.2

Patch Changes

1.8.4-next.1

Patch Changes

1.8.4-next.0

Patch Changes

1.8.3

Patch Changes

1.8.3-next.0

Patch Changes

1.8.2-next.3

Patch Changes

1.8.2-next.2

Patch Changes

1.8.2-next.1

Patch Changes

1.8.2-next.0

Patch Changes

1.8.1

Patch Changes

1.8.1-next.1

Patch Changes

1.8.1-next.0

Patch Changes

1.8.0

Patch Changes

1.8.0-next.8

Patch Changes

1.8.0-next.7

Patch Changes

1.8.0-next.6

Patch Changes

1.8.0-next.5

Patch Changes

1.8.0-next.4

Patch Changes

1.8.0-next.3

Patch Changes

1.7.2-next.2

Patch Changes

1.7.2-next.1

Patch Changes

1.7.2-next.0

Patch Changes

1.7.1

Patch Changes

1.7.1-next.0

Patch Changes

1.7.0

Minor Changes

  • 082db7a: - CrewAI support

Patch Changes

  • 082db7a: - Added RemoteAgentAdapter and implemented CopilotKit (protocol & events).
    • Integrated CrewAI (with a prototype, HITL, event system, and chat/demo tweaks).
    • Updated docs and cleaned up code (fixing stdout issues, restricting Python version, and streamlining demos).
  • 1e934e4: - feat(runtime): Add LangFuse logging integration

1.7.0-next.1

Patch Changes

1.7.0-next.0

Minor Changes

  • 082db7a: - CrewAI support

Patch Changes

  • 082db7a: - Added RemoteAgentAdapter and implemented CopilotKit (protocol & events).
    • Integrated CrewAI (with a prototype, HITL, event system, and chat/demo tweaks).
    • Updated docs and cleaned up code (fixing stdout issues, restricting Python version, and streamlining demos).
    • @copilotkit/shared@1.7.0-next.0

1.6.0

Minor Changes

  • fea916f: - feat: support input and output schema of langgraph
    • docs: add input output schema docs
  • 7d061d9: - feat(configurable): execute langgraph with user config

Patch Changes

  • 543f703: - fix: refrain from processing same tool end several times
    • fix: do not register runtime set action when there are remote endpoints
  • 090203d: - fix: use tryMap method to filter out possibly invalid items
  • 1bb9ca2: - fix(coagents): don't fail when LangSmith API key is missing
    • fix(coagents): don't check for langsmithApiKey in resolveEndpointType
  • 4ddb6d2: - fix: add class validator to dependencies
  • d07f49c: - fix(runtime): fix execution of runtime set backend action handlers
  • 45a3e10: - feat: support latest openai api
    • chore: update all openai dependencies to use latest
    • feat: update adapters using openai API
  • 68f7b65: - handle parsing in fail-safe fashion
  • Updated dependencies [090203d]

1.6.0-next.12

Patch Changes

  • 1bb9ca2: - fix(coagents): don't fail when LangSmith API key is missing

1.6.0-next.11

Patch Changes

1.6.0-next.10

Patch Changes

  • 543f703: - fix: refrain from processing same tool end several times

1.6.0-next.9

Patch Changes

1.6.0-next.8

Minor Changes

  • fea916f: - feat: support input and output schema of langgraph
    • docs: add input output schema docs

Patch Changes

1.6.0-next.7

Patch Changes

1.6.0-next.6

Patch Changes

  • 45a3e10: - feat: support latest openai api

1.6.0-next.5

Patch Changes

1.6.0-next.4

Patch Changes

1.6.0-next.3

Patch Changes

1.6.0-next.2

Patch Changes

1.6.0-next.1

Patch Changes

1.6.0-next.0

Minor Changes

  • 7d061d9: - feat(configurable): execute langgraph with user config

Patch Changes

1.5.20

Patch Changes

1.5.20-next.0

Patch Changes

1.5.19

Patch Changes

1.5.19-next.1

Patch Changes

1.5.19-next.0

Patch Changes

1.5.18

Patch Changes

  • d47cd26: - fix: detect and alert on version mismatch
  • a6e46a9: - fix: use langgraph metadata to get node name
  • 38d3ac2: - fix: add additional info the our error messages
  • Updated dependencies [d47cd26]
  • Updated dependencies [f77a7b9]
  • Updated dependencies [38d3ac2]

1.5.18-next.3

Patch Changes

1.5.18-next.2

Patch Changes

1.5.18-next.1

Patch Changes

1.5.18-next.0

Patch Changes

1.5.17

Patch Changes

  • 1fc3902: - Revert "fix: detect and alert on version mismatch (#1333)"

    This reverts commit 48b7c7b1bd48ced82ffb9a00d6eddc1f7581e0c1.

  • Updated dependencies [1fc3902]

1.5.17-next.0

Patch Changes

  • 1fc3902: - Revert "fix: detect and alert on version mismatch (#1333)"

    This reverts commit 48b7c7b1bd48ced82ffb9a00d6eddc1f7581e0c1.

  • Updated dependencies [1fc3902]

1.5.16

Patch Changes

  • 9be85f1: - fix: use latest langchain packages
  • 48b7c7b: - fix: detect and alert on version mismatch
  • Updated dependencies [48b7c7b]

1.5.16-next.2

Patch Changes

1.5.16-next.1

Patch Changes

1.5.16-next.0

Patch Changes

1.5.15

Patch Changes

  • 06f9f35: - feat(interrupt): add copilotkit interrupt as messages with copilotkit interrupt convenience fn
    • chore(deps): update dependencies for demos
    • chore(interrupt-as-message): add e2e test for interrupt as message
  • 7b3141d: - feat(interrupt): support LG interrupt with useLangGraphInterrupt hook
    • chore(interrupt): add e2e test to interrupt functionality
    • feat(interrupt): add support for multiple interrupts and conditions
  • 68bdbcd: - fix(runtime): enable multi-agent flows while preventing recursive self-calls
  • c14f9db: - add headers handling to other LangGraphClients
  • eb315bd: - fix: allow empty langsmith api key
  • Updated dependencies [7b3141d]

1.5.15-next.8

Patch Changes

  • 06f9f35: - feat(interrupt): add copilotkit interrupt as messages with copilotkit interrupt convenience fn

1.5.15-next.7

Patch Changes

1.5.15-next.6

Patch Changes

1.5.15-next.5

Patch Changes

1.5.15-next.4

Patch Changes

  • 7b3141d: - feat(interrupt): support LG interrupt with useLangGraphInterrupt hook
    • chore(interrupt): add e2e test to interrupt functionality
    • feat(interrupt): add support for multiple interrupts and conditions
  • Updated dependencies [7b3141d]

1.5.15-next.3

Patch Changes

1.5.15-next.2

Patch Changes

1.5.15-next.1

Patch Changes

1.5.15-next.0

Patch Changes

1.5.14

Patch Changes

1.5.14-next.0

Patch Changes

1.5.13

Patch Changes

1.5.13-next.0

Patch Changes

1.5.12

Patch Changes

  • 768b3a5: - chore: add documentation for empty llm adapter
    • fix: throw error when empty adapter is misused
  • a2129f4: - fix(streaming): end streaming on error to enable continuity of chat after failed tool call
  • 926499b: - Load the previous state of an agent if threadId is provided to CopilotKit, including all messages
  • 59de133: - fix: rename ExperimentalEmptyAdapter to EmptyAdapter
  • 6136a57: - fix(errors): add custom error classes to better describe library errors
    • fix(errors): use new errors in error handling
    • chore: add documentation and links to respective errors
  • Updated dependencies [6136a57]

1.5.12-next.7

Patch Changes

1.5.12-next.6

Patch Changes

  • 6136a57: - fix(errors): add custom error classes to better describe library errors
    • fix(errors): use new errors in error handling
    • chore: add documentation and links to respective errors
  • Updated dependencies [6136a57]

1.5.12-next.5

Patch Changes

1.5.12-next.4

Patch Changes

1.5.12-next.3

Patch Changes

1.5.12-next.2

Patch Changes

1.5.12-next.1

Patch Changes

1.5.12-next.0

Patch Changes

1.5.11

Patch Changes

  • 72f9e58: test release notes
  • 716bd5c: test changelog
  • aecb6f4: Fix build script
  • a35d447: test changelog
  • 0a2e07e: Test changelog
  • 8166ac6: Test release notes

1.5.11-next.0

Patch Changes

  • 72f9e58: test release notes
  • 716bd5c: test changelog
  • aecb6f4: Fix build script
  • a35d447: test changelog
  • 0a2e07e: Test changelog
  • 8166ac6: Test release notes

1.5.10

Patch Changes

  • 72f9e58: test release notes
  • 716bd5c: test changelog
  • aecb6f4: Fix build script
  • a35d447: test changelog
  • 8166ac6: Test release notes

1.5.10-next.0

Patch Changes

  • 72f9e58: test release notes
  • 716bd5c: test changelog
  • aecb6f4: Fix build script
  • a35d447: test changelog
  • 8166ac6: Test release notes

1.5.9

Patch Changes

  • 72f9e58: test release notes
  • 716bd5c: test changelog
  • a35d447: test changelog
  • 8166ac6: Test release notes

1.5.8

Patch Changes

1.5.6-next.0

Patch Changes

1.5.5-next.5

Patch Changes

1.5.5-next.3

Patch Changes

1.5.5-next.2

Patch Changes

1.5.4

Patch Changes

1.5.3

Patch Changes

1.5.2

Patch Changes

1.5.1

Patch Changes

  • 5c01e9e: test prerelease #4
  • da280ed: Test prerelease script
  • 27e42d7: testing a prerelease
  • 05240a9: test pre #2
  • 33218fe: test prerelease #3
  • 03f3d6f: Test next prerelease
  • 649ebcc: - fix: add warning when using agents that are not available on agent related hooks
  • 6dfa0d2: - feat: add temperature parameter support for LLM completions
  • Updated dependencies [5c01e9e]
  • Updated dependencies [da280ed]
  • Updated dependencies [27e42d7]
  • Updated dependencies [05240a9]
  • Updated dependencies [33218fe]
  • Updated dependencies [03f3d6f]

1.5.1-next.3

Patch Changes

1.5.1-next.2

Patch Changes

  • da280ed: Test prerelease script
  • 649ebcc: - fix: add warning when using agents that are not available on agent related hooks
  • Updated dependencies [da280ed]

1.5.1-next.1

Patch Changes

1.5.1-next.0

Patch Changes

  • 27e42d7: testing a prerelease
  • 6dfa0d2: - feat: add temperature parameter support for LLM completions
  • Updated dependencies [27e42d7]

1.5.0

Minor Changes

  • 1b47092: Synchronize LangGraph messages with CopilotKit

Patch Changes

  • 1b47092: CoAgents v0.3 prerelease
  • Updated dependencies [1b47092]
  • Updated dependencies [1b47092]

1.5.0-coagents-v0-3.0

Minor Changes

  • Synchronize LangGraph messages with CopilotKit

Patch Changes

1.4.8

Patch Changes

    • Better error handling
    • Introduce new "EmptyLLMAdapter" for when using CoAgents
    • Improve dev console help options
    • Allow CopilotKit remote endpoint without agents
  • 989f159: - fix: allow CopilotKit Remote Endpoint without agents
    • Apply suggestions from code review
  • Updated dependencies

1.4.8-next.0

Patch Changes

1.4.7

Patch Changes

1.4.6

Patch Changes

  • .

1.4.5

Patch Changes

1.4.5-next.0

Patch Changes

1.4.4

Patch Changes

  • 665deab: test prerelease
  • 57a6012: test next prerelease automation
  • 7cfc2e7: test prerelease stuff
  • af36f1a: - feat(runtime): readme update

1.4.4-next.4

Patch Changes

1.4.4-next.3

Patch Changes

1.4.4-next.2

Patch Changes

1.4.4-next.1

Patch Changes

1.4.4-next.0

Patch Changes

1.4.3

Patch Changes

  • c296282: - Better error surfacing when using LangGraph Platform streaming
    • Ensure state is immediately set without using flushSync
    • Better error surfacing when using LangGraph Platform streaming
    • Ensure state is immediately set without using flushSync
  • Updated dependencies [c296282]
  • Updated dependencies

1.4.3-pre.0

Patch Changes

    • Better error surfacing when using LangGraph Platform streaming
    • Ensure state is immediately set without using flushSync
  • Updated dependencies

1.4.2

Patch Changes

    • Make sure agent state is set immediately (#1077)
    • Support running an agent without messages (#1075)
  • Updated dependencies

1.4.1

Patch Changes

  • 1721cbd: lower case copilotkit property
  • 1721cbd: add zod conversion
  • 8d0144f: bump
  • 8d0144f: bump
  • 8d0144f: bump
  • e16d95e: New prerelease
  • 1721cbd: Add convertActionsToDynamicStructuredTools to sdk-js
  • CopilotKit Core:

    • Improved error messages and overall logs
    • useCopilotAction.renderAndAwait renamed to .renderAndAwaitForResponse (backwards compatible, will be deprecated in the future)
    • Improved scrolling behavior. It is now possible to scroll up during LLM response generation
    • Added Azure OpenAI integration
    • Updated interfaces for better developer ergonomics

    CoAgents:

    • Renamed remoteActions to remoteEndpoints (backwards compatible, will be deprecated in the future)
    • Support for LangGraph Platform in Remote Endpoints
    • LangGraph JS Support for CoAgents (locally via langgraph dev, langgraph up or deployed to LangGraph Platform)
    • Improved LangSmith integration - requests made through CoAgents will now surface in LangSmith
    • Enhanced state management and message handling

    CopilotKid Back-end SDK:

    • Released a whole-new @copilotkit/sdk-js for building agents with LangGraph JS Support
  • 8d0144f: bump

  • 8d0144f: bump
  • fef1b74: fix assistant message CSS and propagate actions to LG JS
  • Updated dependencies [1721cbd]
  • Updated dependencies [1721cbd]
  • Updated dependencies [8d0144f]
  • Updated dependencies [8d0144f]
  • Updated dependencies [8d0144f]
  • Updated dependencies [e16d95e]
  • Updated dependencies [1721cbd]
  • Updated dependencies
  • Updated dependencies [8d0144f]
  • Updated dependencies [8d0144f]
  • Updated dependencies [fef1b74]

1.4.1-pre.6

Patch Changes

  • 1721cbd: lower case copilotkit property
  • 1721cbd: add zod conversion
  • 1721cbd: Add convertActionsToDynamicStructuredTools to sdk-js
  • fix assistant message CSS and propagate actions to LG JS
  • Updated dependencies [1721cbd]
  • Updated dependencies [1721cbd]
  • Updated dependencies [1721cbd]
  • Updated dependencies

1.4.1-pre.5

Patch Changes

1.4.1-pre.4

Patch Changes

1.4.1-pre.3

Patch Changes

1.4.1-pre.2

Patch Changes

1.4.1-pre.1

Patch Changes

1.4.1-pre.0

Patch Changes

1.4.0

Minor Changes

CopilotKit Core:

  • Improved error messages and overall logs
  • useCopilotAction.renderAndAwait renamed to .renderAndAwaitForResponse (backwards compatible, will be deprecated in the future)
  • Improved scrolling behavior. It is now possible to scroll up during LLM response generation
  • Added Azure OpenAI integration
  • Updated interfaces for better developer ergonomics

CoAgents:

  • Renamed remoteActions to remoteEndpoints (backwards compatible, will be deprecated in the future)
  • Support for LangGraph Platform in Remote Endpoints
  • LangGraph JS Support for CoAgents (locally via langgraph dev, langgraph up or deployed to LangGraph Platform)
  • Improved LangSmith integration - requests made through CoAgents will now surface in LangSmith
  • Enhanced state management and message handling

CopilotKid Back-end SDK:

  • Released a whole-new @copilotkit/sdk-js for building agents with LangGraph JS Support

Patch Changes

  • f6fab28: update tsup config
  • f6fab28: update entry
  • f6fab28: export langchain module
  • 8a77944: Improve LangSmith support
  • f6fab28: Ensure intermediate state config is sent as snake case
  • f6fab28: update entry in tsup config
  • 8a77944: Ensure the last message is sent to LangSmith
  • a5efccd: Revert rxjs changes
  • f6fab28: update entry
  • f6fab28: Update exports
  • f6fab28: Update exports
  • 332d744: Add support for Azure OpenAI
  • f6fab28: Export LangGraph functions
  • f6fab28: Update lockfile
  • Updated dependencies [f6fab28]
  • Updated dependencies [f6fab28]
  • Updated dependencies
  • Updated dependencies [f6fab28]
  • Updated dependencies [8a77944]
  • Updated dependencies [f6fab28]
  • Updated dependencies [f6fab28]
  • Updated dependencies [8a77944]
  • Updated dependencies [a5efccd]
  • Updated dependencies [f6fab28]
  • Updated dependencies [f6fab28]
  • Updated dependencies [f6fab28]
  • Updated dependencies [332d744]
  • Updated dependencies [f6fab28]
  • Updated dependencies [f6fab28]

1.3.16-mme-revert-rxjs-changes.10

Patch Changes

  • f6fab28: update tsup config
  • f6fab28: update entry
  • f6fab28: export langchain module
  • 8a77944: Improve LangSmith support
  • f6fab28: Ensure intermediate state config is sent as snake case
  • f6fab28: update entry in tsup config
  • 8a77944: Ensure the last message is sent to LangSmith
  • Revert rxjs changes
  • f6fab28: update entry
  • f6fab28: Update exports
  • f6fab28: Update exports
  • 332d744: Add support for Azure OpenAI
  • f6fab28: Export LangGraph functions
  • f6fab28: Update lockfile
  • Updated dependencies [f6fab28]
  • Updated dependencies [f6fab28]
  • Updated dependencies [f6fab28]
  • Updated dependencies [8a77944]
  • Updated dependencies [f6fab28]
  • Updated dependencies [f6fab28]
  • Updated dependencies [8a77944]
  • Updated dependencies
  • Updated dependencies [f6fab28]
  • Updated dependencies [f6fab28]
  • Updated dependencies [f6fab28]
  • Updated dependencies [332d744]
  • Updated dependencies [f6fab28]
  • Updated dependencies [f6fab28]

1.3.15

Patch Changes

  • pass description for array and object action parameters in langchain adapter
  • Updated dependencies

1.3.14

Patch Changes

1.3.13

Patch Changes

1.3.12

Patch Changes

    • enable dynamic parameters in langchain adapter tool call
    • fix unparsable action arguments causing tool call crashes
  • Updated dependencies

1.3.11

Patch Changes

  • 08e8956: Fix duplicate messages
  • Fix duplicate messages
  • Updated dependencies [08e8956]
  • Updated dependencies

1.3.11-mme-fix-duplicate-messages.0

Patch Changes

1.3.10

Patch Changes

1.3.9

Patch Changes

1.3.8

Patch Changes

  • fix textarea on multiple llm providers and memoize react ui context
  • Updated dependencies

1.3.7

Patch Changes

1.3.6

Patch Changes

    1. Removes the usage of the crypto Node pacakge, instaed uses uuid. This ensures that non-Next.js React apps can use CopilotKit.
    2. Fixes Nest.js runtime docs
  • Updated dependencies

1.3.5

Patch Changes

1.3.4

Patch Changes

1.3.3

Patch Changes

1.3.2

Patch Changes

  • Features and bug fixes
  • 30232c0: Ensure actions can be discovered on state change
  • Updated dependencies
  • Updated dependencies [30232c0]

1.3.2-mme-discover-actions.0

Patch Changes

1.3.1

Patch Changes

1.3.0

Minor Changes

  • CoAgents and remote actions

Patch Changes

  • 5b63f55: stream intermediate state
  • b6fd3d8: Better message grouping
  • 89420c6: Rename hooks and bugfixes
  • b6e8824: useCoAgent/useCoAgentAction
  • 91c35b9: useAgentState
  • 00be203: Remote actions preview
  • fb15f72: Reduce request size by skipping intermediate state
  • 8ecc3e4: Fix useCoAgent start/stop bug
  • Updated dependencies
  • Updated dependencies [5b63f55]
  • Updated dependencies [b6fd3d8]
  • Updated dependencies [89420c6]
  • Updated dependencies [b6e8824]
  • Updated dependencies [91c35b9]
  • Updated dependencies [00be203]
  • Updated dependencies [fb15f72]
  • Updated dependencies [8ecc3e4]

1.2.1

Patch Changes

  • inject minified css in bundle

    • removes the need to import styles.css manually
    • empty styles.css included in the build for backwards compatibility
    • uses tsup's injectStyles with postcss to bundle and minify the CSS, then inject it as a style tag
    • currently uses my fork of tsup where I added support for async function in injectStyles (must-have for postcss), a PR from my fork to the main library will follow shortly
    • remove material-ui, and use react-icons for icons (same icons as before)
    • remove unused IncludedFilesPreview component
    • updated docs
  • Updated dependencies

1.2.0

Minor Changes

  • Fix errors related to crypto not being found, and other bug fixes

Patch Changes

  • 638d51d: appendMessage fix 1
  • faccbe1: state-abuse resistance for useCopilotChat
  • b0cf700: remove unnecessary logging
  • Updated dependencies
  • Updated dependencies [638d51d]
  • Updated dependencies [faccbe1]
  • Updated dependencies [b0cf700]

1.1.2

Patch Changes

1.1.1

Patch Changes

    • improved documentation
    • center textarea popup
    • show/hide dev console
    • forward maxTokens, stop and force function calling
  • Updated dependencies

1.1.0

Minor Changes

  • Official support for Groq (GroqAdapter)

Patch Changes

1.0.9

Patch Changes

1.0.8

Patch Changes

1.0.7

Patch Changes

1.0.6

Patch Changes

    • Proactively prevent race conditions
    • Improve token counting performance
  • Updated dependencies

1.0.5

Patch Changes

  • Include @copilotkit/runtime-client-gql NPM package version in request to Runtime
  • Updated dependencies

1.0.4

Patch Changes

1.0.3

Patch Changes

  • Add README.md to published packages and add keywords to package.json
  • Updated dependencies

1.0.2

Patch Changes

1.0.1

Patch Changes

1.0.0

Major Changes

  • b6a4b6eb: V1.0 Release Candidate

    • A robust new protocol between the frontend and the Copilot Runtime
    • Support for Copilot Cloud
    • Generative UI
    • Support for LangChain universal tool calling
    • OpenAI assistant API streaming
  • V1.0 Release

    • A robust new protocol between the frontend and the Copilot Runtime
    • Support for Copilot Cloud
    • Generative UI
    • Support for LangChain universal tool calling
    • OpenAI assistant API streaming

Patch Changes

  • b6a4b6eb: Introduce anonymous telemetry
  • b6a4b6eb: Set default Copilot Cloud runtime URL to versioned URL (v1)
  • Updated dependencies [b6a4b6eb]
  • Updated dependencies [b6a4b6eb]
  • Updated dependencies [b6a4b6eb]
  • Updated dependencies

1.0.0-beta.2

Patch Changes

1.0.0-beta.1

Patch Changes

1.0.0-beta.0

Major Changes

  • V1.0 Release Candidate

    • A robust new protocol between the frontend and the Copilot Runtime
    • Support for Copilot Cloud
    • Generative UI
    • Support for LangChain universal tool calling
    • OpenAI assistant API streaming

Patch Changes