GitHub
magentic
AI Agent 指数 第 567(共 964)
11 综合分
真实使用 —
动量 —
关注度 45
项目介绍
Seamlessly integrate Large Language Models into Python code. Use the @prompt and @chatprompt decorators to create functions that return structured output from an LLM. Combine LLM queries and tool use with traditional Python code to build complex agentic systems.
Configure your OpenAI API key by setting the OPENAIAPIKEY environment variable. To configure a different LLM provider see [Configuration] for more.
The @prompt decorator allows you to define a template for a Large Language Model (LLM) prompt as a Python function. When this function is called, the arguments are inserted into the template, then this prompt is sent to an LLM which generates the function output.
The @prompt decorator…
各数据源
2.4k Star
- Star 2.4k
- Fork 127
- 提交 360
- 发布 65