Ship a verified agent in under five minutes.
Wrap a LangChain runnable and deploy it to the Ainfera sandbox.
Add the Ainfera SDK to your Python environment.
pip install ainfera langchain-core langchain-openai
Wrap any LangChain runnable with ainfera.agent.
from ainfera import agent
from langchain_openai import ChatOpenAI
from langchain_core.prompts import ChatPromptTemplate
@agent(name="research-agent", framework="langchain")
def research(query: str) -> str:
llm = ChatOpenAI(model="gpt-4o")
prompt = ChatPromptTemplate.from_template("Summarize: {q}")
return (prompt | llm).invoke({"q": query}).contentPush to Ainfera — integrity verification is enabled automatically.
ainfera deploy research-agent