Integrations · LangChain

FluentC for LangChain.

The official Python package for using FluentC from LangChain. Real-time and batch translation, language detection and job polling, all as LangChain tools.

install · bash
pip install fluentc-langchain-tool
translate.py · python
from fluentc_langchain_tool import FluentCTranslationTool

tool = FluentCTranslationTool(api_key="your-api-key")
response = tool.run({
    "text": "Hello, world!",
    "target_language": "fr",
    "source_language": "en",
    "mode": "realtime",
})
print(response)  # "Bonjour, le monde !"
What you get

Translation as a tool your agent can call.

Real-time and batch

Choose a mode per call. Batch jobs poll for you and respect the API's estimated_wait_seconds, so you don't hammer it.

Language detection

A dedicated tool returns the detected language with a confidence score, so an agent can branch before it translates.

Text and HTML

Translate plain text or markup. Structure survives the round trip.

Errors an agent can read

Tools return a readable error string instead of raising, so the agent can recover or tell the user.

Job polling

Check a batch job's status, or fetch its result, with their own tools when you want control over the loop.

Drops into agents and chains

Each class is a LangChain tool. Add it to an agent's tool list and describe the job in plain English.

Tool classes

Six tools, one import.

Tool classPurpose
FluentCTranslationToolReal-time or batch translation submit
FluentCLanguageDetectorToolDetect the source language from input
FluentCTranslationStatusToolCheck the status of a batch translation job
FluentCResultsToolLegacy. Use the status tool instead
FluentCBatchTranslationToolOne-shot batch submit and polling
FluentCSupportedLanguagesToolList the languages enabled for your key
Why developers pick it

Make LangChain agents multilingual, automatically.

Flat monthly pricing

No per-token surprises when an agent loops.

Memory built in

Identical segments aren't retranslated or billed again.

Async and real-time

Use real-time inside a tool call, batch for big payloads.

Built for scale, not for strings

The same engine behind the REST API, with 128+ languages.

Add translation to your agent.

Create a key, pip install, call the tool.