ExUtcp.OpenApiConverter.Generator (ex_utcp v0.3.2)

Copy Markdown View Source

Generates UTCP tools from parsed OpenAPI specifications.

Summary

Functions

Generates UTCP tools from a parsed OpenAPI specification.

Functions

generate_tools(parsed_spec, opts \\ [])

@spec generate_tools(
  ExUtcp.OpenApiConverter.Types.ParsedSpec.t(),
  keyword()
) :: {:ok, [map()]} | {:error, String.t()}

Generates UTCP tools from a parsed OpenAPI specification.

Parameters

  • parsed_spec: Parsed OpenAPI specification
  • opts: Conversion options

Returns

{:ok, tools} on success, {:error, reason} on failure.