အကြောင်းအရာသို့ ကျော်သွားရန်
Agno

ကိုယ်ပိုင် agent နှင့် ကိုယ်တိုင်လုပ်ဆောင်သော agent များ

Agno ကို Shannon ဖြင့် အသုံးပြုခြင်း

Agno agent များကို Shannon ၏ base URL နှင့် key ပါသော OpenAILike model ပေးပါ၊ ထိုအခါ tool၊ streaming နှင့် team များသည် Shannon model များပေါ်တွင် run မည်။

  • 2026 နို 7 တွင် စမ်းသပ်ထားသည်
  • OpenAI Chat Completions
  • ခန့်မှန်း 2 မိနစ်

Agno အကြောင်း

Agno သည် memory၊ knowledge နှင့် tool များပါသော agent များ၊ agent team များနှင့် ၎င်းတို့ပတ်လည်ရှိ service များ တည်ဆောက်ရန် Python framework ဖြစ်သည်။ ၎င်း၏ OpenAILike model class က OpenAI-compatible endpoint မည်သည့်အရာနှင့်မဆို ဆက်သွယ်သောကြောင့် Agno agent များသည် Shannon model များပေါ်တွင် run နိုင်သည်။

လိုအပ်သည်များ

Shannon API key တစ်ခု
Keys & usage စာမျက်နှာ
အခြေ URL
https://api.shannon-ai.com/v1 အဆုံးမှတ်: /v1/chat/completions
အောက်ပါ နမူနာအားလုံးသည် သင့်ရွေးချယ်မှုအတိုင်း ပြောင်းလဲသည်။

သတ်မှတ်ပုံ

  1. Agno ကို install လုပ်ပါ

    Shell
    pip install agno openai
  2. Shannon ပေါ်တွင် agent တစ်ခု ဖန်တီးပါ

    Python
    from agno.agent import Agent
    from agno.models.openai.like import OpenAILike
    
    model = OpenAILike(id="Kimi-K3-uncensored-NVFP4", base_url="https://api.shannon-ai.com/v1", api_key="YOUR_API_KEY")
    
    def get_weather(city: str) -> str:
        """Weather for a city."""
        return f"Sunny, 18 C in {city}"
    
    agent = Agent(model=model, tools=[get_weather])
    agent.print_response("What is the weather in Oslo?", stream=True)

အလုပ်လုပ်ကြောင်း စစ်ဆေးပါ

ပို့ရန်: နမူနာကို run ပါ။

မြင်ရမည့်အရာ: Oslo အတွက် tool ၏ ရလဒ်ကို သုံးသော stream လုပ်ထားသည့် အဖြေ။

Agno နှင့် ကိုက်ညီသော model များ

အောက်ပါ id တိုင်းသည် Agno ၏ လိုအပ်ချက်နှင့် ကိုက်ညီသည်။ ပထမ id သည် code နမူနာများတွင် default ဖြစ်သည်။

မော်ဒယ် IDContext အရွယ်အများဆုံး outputပုံ ထည့်သွင်းမှု
Kimi-K3-uncensored-NVFP4 1,022,976 262,144 ဟုတ်
Kimi-K3.1-Pro-uncensored-NVFP4 1,022,976 262,144 ဟုတ်
MiMo-V2.6-Pro-uncensored-NVFP4 1,022,976 131,072 ဟုတ်
Kimi-K3-uncensored-3BIT-REAP 225,280 225,280 ဟုတ်
shannon-3 196,608 65,536 ဟုတ်

သိထားသင့်သည်များ

  • OpenAIChat မဟုတ်ဘဲ OpenAILike ကို သုံးပါ- OpenAIChat က OpenAI ၏ ကိုယ်ပိုင် model အမည်များနှင့် option များကို ယူဆသည်။
  • Memory နှင့် knowledge feature များသည် vector search အတွက် embedder လိုအပ်သည်၊ Shannon က embeddings မပေးပါ။
  • Shannon model များကဲ့သို့ model က reasoning ပြန်ပေးလျှင် print_response က model ၏ reasoning ကို အဖြေအထက်ရှိ သီးခြားအကွက်တွင် ပြသည်။

အကြံပြုချက်များ

  1. Type hint နှင့် docstring ပါသော ရိုးရိုး Python function များသည် tool များအဖြစ် အလုပ်လုပ်သည်။
  2. agent.run(...) က response object တစ်ခု ပြန်ပေးသည်၊ .content တွင် စာသားပါသည်။
  3. Team များသည် အဖွဲ့ဝင်တိုင်းအတွက် တူညီသော model object ကို လက်ခံသည်။

ပြဿနာဖြေရှင်းခြင်း

လက္ခဏာအကြောင်းရင်းဖြေရှင်းနည်း
404 Not Found base_url တွင် /v1 မပါ။ https://api.shannon-ai.com/v1 ကို သုံးပါ။
401 Key မပေးခဲ့ဘဲ OPENAI_API_KEY လည်း ဗလာဖြစ်သည်။ OpenAILike သို့ api_key= ကို ပေးပါ။
401 Unauthorized Key မရှိခြင်း၊ စာလုံးပေါင်းမှားခြင်း သို့မဟုတ် လဲလှယ်ပြီးသွားခြင်း ဖြစ်သည်။ Keys & usage မှ key ကို ထပ်မံကူးယူပါ။ ၎င်းသည် sk- ဖြင့် စတင်သည်။
context_length_exceeded သို့မဟုတ် "prompt is too long" စာတို စကားပြောဆိုမှုသည် model ၏ context window ထက် ပိုရှည်နေသည်။ chat အသစ် စတင်ပါ၊ tool ကို ချုံ့ခွင့်ပေးပါ သို့မဟုတ် window ပိုကြီးသော model ကို ရွေးပါ။
insufficient_quota သင့် လက်ကျန်ငွေသည် request အတွက် ပေးချေရန် မလုံလောက်ပါ။ Top up ပြုလုပ်ပါ သို့မဟုတ် plan ပြောင်းပါ။ request ကို အလိုအလျောက် ပြန်မပို့ပါ။

မေးခွန်းများ

Agno သည် Shannon နှင့် အလုပ်လုပ်ပါသလား။

လုပ်ပါသည်၊ OpenAILike(base_url="https://api.shannon-ai.com/v1") မှတစ်ဆင့်။

Agno tool များ အလုပ်လုပ်ပါသလား။

လုပ်ပါသည်၊ Python tool တစ်ခုကို ခေါ်သော agent တစ်ခု ကျွန်ုပ်တို့ run ပြီးဖြစ်သည်။

သင့်ဘာသာကို ရွေးချယ်ပါ

ဘာသာအားလုံးသည် တန်းတူဖြစ်သည်။ သင်အသုံးပြုလိုသော ဘာသာကို ရွေးပါ။

ဥရောပ

အရှေ့အလယ်ပိုင်းနှင့် မြောက်အာဖရိက

တောင်အာရှ

အရှေ့တောင်အာရှ

အရှေ့အာရှ

ဗဟိုအာရှနှင့် ကော့ကေးဆပ်

အာဖရိက

သမုဒ္ဒရာဒေသ

ဖန်တီးထားသော နှင့် ဂန္ထဝင်