Package com.google.genkit.ai
package com.google.genkit.ai
-
ClassDescriptionRepresents an agent that can be used as a tool in multi-agent systems.Result of an agent transfer.Configuration for defining an agent (prompt as tool).Builder for AgentConfig.Exception thrown when an agent tool is called to signal a handoff.Candidate represents a single model response candidate.Document represents a document for use with embedders and retrievers.Embedder is an action that generates embeddings from documents.Builder for Embedder.EmbedderInfo contains metadata about an embedder's capabilities.EmbedderCapabilities describes what an embedder can do.EmbedRequest contains documents to embed.EmbedResponse contains the embeddings generated from documents.Embedding represents a single embedding vector.FinishReason indicates why the model stopped generating.GenerateAction is a utility action that provides a unified interface for generating content from AI models.Options for the generate utility action.Options for text generation requests.Builder for GenerateOptions.GenerationConfig contains configuration for model generation.Builder for GenerationConfig.Indexer is an action that indexes documents into a vector store.Builder for Indexer.Request to index documents into a vector store.Response from an indexer operation.InterruptConfig<I,
O> Configuration for defining an interrupt tool.Builder for InterruptConfig.Represents an interrupt request from a tool.Media represents media content in a message part.Message represents a message in a conversation with a generative AI model.Builder for Message.Model is the interface for AI model implementations.ModelInfo contains metadata about a model's capabilities.ModelCapabilities describes what a model can do.ModelRequest represents a request to a generative AI model.Builder for ModelRequest.ModelResponse represents a response from a generative AI model.Builder for ModelResponse.ModelResponseChunk represents a streaming chunk from a generative AI model.OutputConfig contains configuration for model output generation.OutputFormat specifies the format for model output.Part represents a part of a message content, which can be text, media, tool request, or tool response.Prompt<I>Prompt is a template that generates ModelRequests from input variables.Builder for Prompt.Options for resuming after an interrupt.Builder for ResumeOptions.Retriever is an action that retrieves documents based on a query.Builder for Retriever.RetrieverRequest contains a query for document retrieval.RetrieverOptions contains options for retrieval.RetrieverResponse contains documents retrieved from a query.Role represents the role of a message sender in a conversation.Tool<I,O> Tool represents a function that can be called by an AI model.Tool.Builder<I,O> Builder for Tool.ToolDefinition describes a tool that can be used by a model.Exception thrown when a tool execution is interrupted.ToolRequest represents a request from the model to invoke a tool.ToolResponse represents a response from a tool invocation.Usage represents token usage statistics from a model response.