Integrate conversational AI, flows, or knowledge base search directly into your Python applications:
from noxus_sdk.client import Clientclient = Client(api_key="your_api_key")# Get a flow and run itflow = client.workflows.get("wf_123")run = flow.run( body={"user_query": "Analyze this data"})# Query knowledge baseresults = client.knowledge_bases.search( kb_id="kb_456", query="What's our refund policy?")
Custom Applications
Build custom interfaces, dashboards, or tools on top of Noxus:
# Create a custom chatbot interfaceconversation = client.conversations.create( agent_id="agent_789", name="Customer Support Session")# Stream responsesfor chunk in conversation.chat_stream("How do I reset my password?"): print(chunk.content, end="", flush=True)
Flow Orchestration
Programmatically create, manage, and execute complex AI flows:
Integrate AI processing into data pipelines and ETL flows:
import pandas as pd# Process data through Noxus flowsdf = pd.read_csv("customer_feedback.csv")# Pre-fetch the workflow objectflow = client.workflows.get("sentiment_analysis")for idx, row in df.iterrows(): run = flow.run( body={"text": row['feedback']} ) result = run.wait(output_only=True) df.at[idx, 'sentiment'] = result['sentiment'] df.at[idx, 'category'] = result['category']df.to_csv("analyzed_feedback.csv")