Files
Ayush Baluni ae88a6addf docs: fix OpenAPIServiceConnector and OpenAPIServiceToFunctions code snippets + docs (#10851)
* fix: correct OpenAPIServiceConnector and OpenAPIServiceToFunctions code snippets

- OpenAPIServiceConnector: use ToolCall and ChatMessage.from_assistant(tool_calls=[...])
  instead of invalid ChatMessage.from_assistant(json.dumps(fc_payload)); fix invalid
  Python serper_token = <your_serper_dev_token> to use placeholder string
- OpenAPIServiceToFunctions: use ByteStream.from_string() with inline spec instead of
  non-existent path/to/openapi_definition.yaml

Fixes #10645

* Apply suggestions from code review

* fixes

* simplify update docs

* better docs

---------

Co-authored-by: Stefano Fiorucci <stefanofiorucci@gmail.com>
2026-03-26 16:15:04 +01:00
..