importosimportlogfirefrompydanticimportBaseModelfrompydantic_aiimportAgent# 'if-token-present' means nothing will be sent (and the example will work) if you don't have logfire configuredlogfire.configure(send_to_logfire='if-token-present')classMyModel(BaseModel):city:strcountry:strmodel=os.getenv('PYDANTIC_AI_MODEL','openai:gpt-4o')print(f'Using model: {model}')agent=Agent(model,output_type=MyModel,instrument=True)if__name__=='__main__':result=agent.run_sync('The windy city in the US of A.')print(result.output)print(result.usage())