{"library":"magentic","install":[{"cmd":"pip install magentic","imports":["from magentic import prompt\nfrom pydantic import BaseModel\n\nclass Superhero(BaseModel):\n    name: str\n    power: str\n\n@prompt('Create a superhero named {name}.')\ndef create_superhero(name: str) -> Superhero:\n    ...  # body is never executed — must be ellipsis\n\nhero = create_superhero('Garden Man')\nprint(hero.name, hero.power)","from magentic import prompt, FunctionCall\n\ndef get_weather(city: str) -> str:\n    return f'Sunny in {city}'\n\n@prompt(\n    'What is the weather in {city}?',\n    functions=[get_weather]\n)\ndef describe_weather(city: str) -> FunctionCall[str]:\n    ...\n\n# Returns a FunctionCall object — must be called to execute\nfn_call = describe_weather('Boston')\nresult = fn_call()  # actually calls get_weather\nprint(result)","from magentic import chatprompt, SystemMessage, UserMessage\n\n@chatprompt(\n    SystemMessage('You are a helpful assistant.'),\n    UserMessage('{question}'),\n)\ndef answer(question: str) -> str:\n    ...\n\nprint(answer('What is Python?'))"]},{"cmd":"pip install 'magentic[anthropic]'","imports":[]},{"cmd":"pip install 'magentic[litellm]'","imports":[]}]}