2025-02-28
langchain-writer v0.0.3

Released Writer LangChain integration

We’re excited to announce the first release of langchain-writer, the official Writer LangChain integration. This release includes:

  • The ChatWriter model for text generation
  • Tool calling capabilities, including the GraphTool for retrieving information from a Knowledge Graph
  • Additional tools like the PDFParser for parsing PDFs and the WriterTextSplitter for intelligent text splitting

Check out the tutorial to get started and the full integration documentation for more details.

2025-02-27
Python and Node SDK v2.0.0

Released version 2.0.0 of the Python and Node SDKs

The 2.0.0 release includes new functionality for the Writer SDKs for Python and Node:

  • Model delegation tool: A prebuilt, remotely executed tool that lets you delegate domain-specific requests to the appropriate Palymra model. For example, if your application has finance questions, you can use the tool to allow Palmyra X 004 to delegate these questions to Palmyra Financial. Read more in our model delegation guide.
  • Retrieve application details: Retrieve details for all of your no-code applications. Programmatically retrieve application inputs rather than relying on the AI Studio UI. This pairs well with our guide on using no-code applications as tools.
  • Async jobs: Trigger no-code application content generation asynchronously and retrieve or retry the job at a later time. This is great for long-running no-code applications, such as research assistant applications. To learn more, check out the guide on async jobs.
  • Associate Knowledge Graphs with chat applications: Retrieve or update which Knowledge Graphs are associated with no-code chat applications.
The 2.0.0 release includes some breaking changes to the underlying models used in chat completion. This won’t affect you if you are only using chat completion via the Writer.chat.chat method, but it will if you are importing specific types directly. See below for more details about changes in each SDK.

See the SDK repositories for the full changelogs:

Python SDK

See below for the mapping of old types to new types:

OldNew
chat_chat_params.Tooltypes.shared_params.tool_param.ToolParam
types.Chattypes.chat_completion.ChatCompletion
types.chat.ChoiceMessageGraphDataSourcetypes.shared.source.Source
types.chat.ChoiceMessageGraphDataSubquerySourcetypes.shared.source.Source
types.chat_completion_chunk.ChoiceDeltaGraphDatatypes.shared.graph_data.GraphData
types.chat_completion_chunk.Usagetypes.chat_completion_usage
types.chat_completion_chunk.ChoiceMessageToolCalltypes.shared.tool_call_streaming.ToolCallStreaming
types.question.Sourcetypes.shared.source.Source
types.question.SubquerySourcetypes.shared.source.Source

Additionally:

  • The types.chat_completion_chunk.Message type has been moved to its own model: types.chat_completion_message.

  • types.chat.ChoiceLogprobsContent, ChoiceLogprobsRefusal, ChoiceLogprobsContentTopLogprob, and ChoiceLogprobsRefusalTopLogprob have all been deduplicated and replaced by a shared model types.shared.logprobs_token.LogprobsToken.

Node SDK

See below for the mapping of old types to new types:

OldNew
ChatResourceChat
ChatChatCompletion
Chat.ChoiceChatCompletionChoice
Chat.Choice.MessageChatCompletionMessage
Chat.Choice.LogprobsShared.Logprobs
Chat.Choice.Logprobs.ContentShared.LogprobsToken
Chat.Choice.Logprobs.RefusalShared.LogprobsToken
Chat.UsageChatCompletionUsage
ChatCompletionChunk.Choice.MessageChatCompletionMessage
ChatCompletionChunk.Choice.DeltaChatCompletionChunk.Choice.Delta
ChatCompletionChunk.Choice.Delta.GraphDataShared.GraphData
ChatCompletionChunk.Choice.Delta.ToolCallShared.ToolCallStreaming
ChatCompletionChunk.Choice.LogprobsShared.Logprobs
ChatCompletionChunk.UsageChatCompletionUsage
ChatChatParams.Message.GraphDataShared.GraphData
ChatChatParams.Message.ToolCallShared.ToolCall
ChatChatParams.StringToolChoiceShared.ToolChoiceString
ChatChatParams.JsonObjectToolChoiceShared.ToolChoiceJsonObject
ChatChatParams.FunctionToolShared.ToolParam.FunctionTool
ChatChatParams.GraphToolShared.ToolParam.GraphTool
StreamingDataCompletionChunk
Completion.Choice.LogProbsShared.Logprobs

The Node SDK includes developer experience improvements from Stainless, including using the native fetch API, resulting in zero SDK dependencies.

2024-12-20
Python SDK v1.6.1

Released version 1.6.1 of the Python SDK

  • Fixed a typing bug where the content field in the File did not accept the correct FileTypes values.
2024-12-16
Python SDK v1.6.0; Node SDK v1.5.0

Released Python SDK version 1.6.0 and Node SDK version 1.5.0

2024-11-29
Python SDK v.1.5.0

Released Python SDK version 1.5.0

  • Added new functionality via manual API updates
  • Fixed compatibility with the latest httpx 0.28.0 release
  • Improved handling of deprecated arguments (transport, proxies) to maintain backward compatibility
  • Fixed compatibility issues with Pydantic model_dump method when warnings are passed
  • Removed the now unused cached-property dependency, as we now rely on the standard library implementation for Python 3.8+
  • Enhanced logging documentation in README, adding information about the ‘info’ log level
  • Updated the recommended log level from ‘debug’ to ‘info’ for standard usage
  • Fixed code formatting for better readability and consistency
  • Excluded test files from mypy checks to avoid false positives
  • Updated internal compatibility layer for better type checking
  • Improved error handling for deprecated client configuration options
2024-11-14
Python and Node SDK v1.4.0

Released Python and Node SDK versions 1.4.0

  • Updated the default timeout on the Writer client to three minutes.

Was this page helpful?