Documentation
¶
Index ¶
- Constants
- func WithAgentFinder(f agentmdl.Finder) func(*Service)
- func WithConversationClient(c apiconv.Client) func(*Service)
- func WithMCPManager(m promptdef.MCPManager) func(*Service)
- type EvidenceContract
- type GetInput
- type GetOutput
- type ListInput
- type ListItem
- type ListOutput
- type Message
- type Service
Constants ¶
View Source
const Name = "prompt"
Variables ¶
This section is empty.
Functions ¶
func WithAgentFinder ¶
func WithConversationClient ¶
func WithMCPManager ¶
func WithMCPManager(m promptdef.MCPManager) func(*Service)
Types ¶
type EvidenceContract ¶ added in v0.1.9
type GetInput ¶
type GetInput struct {
ID string `json:"id"`
IncludeDocument *bool `json:"includeDocument,omitempty"`
}
GetInput is the request payload for prompt:get.
type GetOutput ¶
type GetOutput struct {
ID string `json:"id"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
EvidenceContract *EvidenceContract `json:"evidenceContract,omitempty"`
ToolBundles []string `json:"toolBundles,omitempty"`
PreferredTools []string `json:"preferredTools,omitempty"`
Template string `json:"template,omitempty"`
Templates []string `json:"templates,omitempty"`
Resources []string `json:"resources,omitempty"`
Messages []Message `json:"messages,omitempty"`
// Injected is true when includeDocument=true and messages were written into
// the conversation.
Injected bool `json:"injected,omitempty"`
}
GetOutput is the response payload for prompt:get. Messages are always returned regardless of includeDocument. includeDocument controls only whether messages are also injected into the current conversation via AddMessage().
type ListItem ¶
type ListItem struct {
ID string `json:"id"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
AppliesTo []string `json:"appliesTo,omitempty"`
EvidenceContract *EvidenceContract `json:"evidenceContract,omitempty"`
ToolBundles []string `json:"toolBundles,omitempty"`
Template string `json:"template,omitempty"`
Templates []string `json:"templates,omitempty"`
}
ListItem is a single entry in a prompt:list response. Instruction content is intentionally omitted — descriptions are selection guidance only so that orchestrators can choose a profile without seeing its full instruction text.
type ListOutput ¶
type ListOutput struct {
Profiles []ListItem `json:"profiles"`
}
ListOutput is the response payload for prompt:list.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements the prompt:list and prompt:get tools.
func New ¶
func New(repo *promptrepo.Repository, opts ...func(*Service)) *Service
func (*Service) Methods ¶
func (s *Service) Methods() svc.Signatures
Click to show internal directories.
Click to hide internal directories.