mirror of
https://github.com/MervinPraison/PraisonAI.git
synced 2026-11-07 12:47:55 -10:00
22 lines
546 B
Python
22 lines
546 B
Python
"""
|
|
Basic example of using Kimi model with Groq provider in PraisonAI
|
|
"""
|
|
|
|
from praisonaiagents import Agent
|
|
|
|
# Initialize Agent with Kimi model using Groq provider
|
|
agent = Agent(
|
|
instructions="You are a helpful assistant",
|
|
llm="groq/kimi",
|
|
)
|
|
|
|
# Example conversation
|
|
response = agent.start("Hello! Can you help me with a coding task?")
|
|
|
|
# Example with more complex task
|
|
coding_task = """
|
|
Write a Python function that calculates the factorial of a number.
|
|
Include error handling and documentation.
|
|
"""
|
|
|
|
response = agent.start(coding_task) |