mcp: align PromptHandler args with other handlers (#348)
The second arg is a GetPromptRequest. Fixes #300.
This commit is contained in:
parent
5fd06ae8b7
commit
e3e8aaf024
1 changed files with 8 additions and 8 deletions
|
|
@ -9,7 +9,7 @@ import (
|
|||
)
|
||||
|
||||
// A PromptHandler handles a call to prompts/get.
|
||||
type PromptHandler func(context.Context, *ServerSession, *GetPromptParams) (*GetPromptResult, error)
|
||||
type PromptHandler func(context.Context, *GetPromptRequest) (*GetPromptResult, error)
|
||||
|
||||
type serverPrompt struct {
|
||||
prompt *Prompt
|
||||
|
|
|
|||
Loading…
Reference in a new issue