Expand description
Pure functions for converting between tirea and genai types.
Functionsยง
- apply_
prompt_ cache_ hints - Apply prompt cache hints to a chat request.
- assistant_
message - Create an assistant message (convenience function).
- assistant_
tool_ calls - Create an assistant message with tool calls (convenience function).
- build_
request - Build a genai ChatRequest from messages and tools.
- to_
chat_ message - Convert a Message to a genai ChatMessage.
- to_
genai_ tool - Convert a ToolDescriptor to a genai Tool.
- tool_
response - Create a tool response message from ToolResult.
- user_
message - Create a user message (convenience function).