20 lines
436 B
Go
20 lines
436 B
Go
package domain
|
|
|
|
import "context"
|
|
|
|
// LLMRequest represents a request to the LLM
|
|
type LLMRequest struct {
|
|
Prompt string
|
|
Schema interface{} // JSON schema for structured output
|
|
}
|
|
|
|
// LLMResponse represents the response from the LLM
|
|
type LLMResponse struct {
|
|
Content string
|
|
}
|
|
|
|
// LLMProvider defines the interface for LLM providers
|
|
type LLMProvider interface {
|
|
Complete(ctx context.Context, request LLMRequest) (*LLMResponse, error)
|
|
}
|