Class | Package | Local | Serializable | JS support | Package downloads | Package latest |
---|---|---|---|---|---|---|
ChatClovaX | langchain-naver | ❌ | ❌ | ❌ |
Tool calling | Structured output | JSON mode | Image input | Audio input | Video input | Token-level streaming | Native async | Token usage | Logprobs |
---|---|---|---|---|---|---|---|---|---|
✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ |
CLOVASTUDIO_API_KEY
environment variable with your API key.
You can add them to your environment variables as below:
langchain-naver
package:
invoke
below, ChatClovaX
also supports batch, stream and their async functionalities.
max_tokens
larger than 1024 to utilize the tool calling feature in CLOVA Studio.
ChatClovaX.bind_tools
, we can easily pass in Pydantic classes, dict schemas, LangChain tools, or even functions as tools to the model. Under the hood these are converted to an OpenAI-compatible tool schemas, which looks like:
tool_calls
attribute. This contains in a standardized ToolCall format that is model-provider agnostic.
thinking.effort
to none
.
method
to json_schema
.
thinking
parameter to control the feature—enable or disable the thinking process and configure its depth.
thinking_content
attribute in AIMessage.additional_kwargs
.
task_id
to the model
parameter as: ft:{task_id}
.
You can check task_id
from corresponding Test App or Service App details.