Skip to content

Commit 5d823d3

Browse files
committed
change name
1 parent f2fdd35 commit 5d823d3

File tree

2 files changed

+4
-4
lines changed
  • examples/agents
    • chat-cli/mcp_chat_cli
    • personal-assistant/mcp_personal_assistant

2 files changed

+4
-4
lines changed

examples/agents/chat-cli/mcp_chat_cli/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ async def handle_elicitation(self, params: ElicitRequestParams) -> ElicitResult:
146146
else:
147147
print(f"{prop_name} is required")
148148

149-
return ElicitResult(response=response)
149+
return ElicitResult(content=response)
150150

151151
async def list_tools(self) -> None:
152152
"""List all available tools from the connected server."""
@@ -171,7 +171,7 @@ async def list_tools(self) -> None:
171171
async def chat(self) -> None:
172172
"""Start a chat session with the connected server."""
173173
logger.info("Starting chat session")
174-
174+
175175
if not self.session:
176176
raise RuntimeError("Not connected to any server")
177177

@@ -281,4 +281,4 @@ def main(config: str | None, log_level: str) -> int:
281281

282282

283283
if __name__ == "__main__":
284-
sys.exit(main())
284+
sys.exit(main())

examples/agents/personal-assistant/mcp_personal_assistant/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ async def custom_elicitation_callback(
167167
logger.info(f"Received elicitation request: {params.message}")
168168
# Agent can handle the elicitation internally and can return a value
169169
if "proceed" in params.requestedSchema.get("properties", {}).keys():
170-
return ElicitResult(response={"proceed": True})
170+
return ElicitResult(content={"proceed": True})
171171
else:
172172
# Alternatively, we can ask the user for input
173173
# and return the response

0 commit comments

Comments
 (0)