ListPrompts lists prompts that are currently available on the server.
(ctx context.Context, params *ListPromptsParams)
| 971 | |
| 972 | // ListPrompts lists prompts that are currently available on the server. |
| 973 | func (cs *ClientSession) ListPrompts(ctx context.Context, params *ListPromptsParams) (*ListPromptsResult, error) { |
| 974 | return handleSend[*ListPromptsResult](ctx, methodListPrompts, newClientRequest(cs, orZero[Params](params))) |
| 975 | } |
| 976 | |
| 977 | // GetPrompt gets a prompt from the server. |
| 978 | func (cs *ClientSession) GetPrompt(ctx context.Context, params *GetPromptParams) (*GetPromptResult, error) { |