Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updated with latest official api
  • Loading branch information
paperspaceBen committed Mar 19, 2025
commit be36f93107687f263cf2cadeaaac2ab39d98a9c6
49 changes: 12 additions & 37 deletions specification/DigitalOcean-public.v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1853,12 +1853,12 @@ paths:


/v2/gen-ai/agents:
get:
$ref: 'resources/gen-ai/genai_list_agents.yml'

post:
$ref: 'resources/gen-ai/genai_create_agent.yml'

get:
$ref: 'resources/gen-ai/genai_list_agents.yml'


/v2/gen-ai/agents/{agent_uuid}/api_keys:
get:
Expand Down Expand Up @@ -1903,15 +1903,15 @@ paths:


/v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}:
put:
$ref: 'resources/gen-ai/genai_update_attached_agent.yml'

delete:
$ref: 'resources/gen-ai/genai_detach_agent.yml'

post:
$ref: 'resources/gen-ai/genai_attach_agent.yml'

put:
$ref: 'resources/gen-ai/genai_update_attached_agent.yml'


/v2/gen-ai/agents/{uuid}:
delete:
Expand Down Expand Up @@ -1943,15 +1943,15 @@ paths:


/v2/gen-ai/anthropic/keys/{api_key_uuid}:
put:
$ref: 'resources/gen-ai/genai_update_anthropic_api_key.yml'

delete:
$ref: 'resources/gen-ai/genai_delete_anthropic_api_key.yml'

get:
$ref: 'resources/gen-ai/genai_get_anthropic_api_key.yml'

put:
$ref: 'resources/gen-ai/genai_update_anthropic_api_key.yml'


/v2/gen-ai/anthropic/keys/{uuid}/agents:
get:
Expand Down Expand Up @@ -2003,50 +2003,25 @@ paths:


/v2/gen-ai/knowledge_bases/{uuid}:
delete:
$ref: 'resources/gen-ai/genai_delete_knowledge_base.yml'

get:
$ref: 'resources/gen-ai/genai_get_knowledge_base.yml'

put:
$ref: 'resources/gen-ai/genai_update_knowledge_base.yml'

delete:
$ref: 'resources/gen-ai/genai_delete_knowledge_base.yml'


/v2/gen-ai/models:
get:
$ref: 'resources/gen-ai/genai_list_models.yml'


/v2/gen-ai/openai/keys:
get:
$ref: 'resources/gen-ai/genai_list_openai_api_keys.yml'

post:
$ref: 'resources/gen-ai/genai_create_openai_api_key.yml'


/v2/gen-ai/openai/keys/{api_key_uuid}:
delete:
$ref: 'resources/gen-ai/genai_delete_openai_api_key.yml'

get:
$ref: 'resources/gen-ai/genai_get_openai_api_key.yml'

put:
$ref: 'resources/gen-ai/genai_update_openai_api_key.yml'


/v2/gen-ai/openai/keys/{uuid}/agents:
get:
$ref: 'resources/gen-ai/genai_list_agents_by_openai_key.yml'


/v2/gen-ai/regions:
get:
$ref: 'resources/gen-ai/genai_list_datacenter_regions.yml'





Expand Down
24 changes: 0 additions & 24 deletions specification/resources/gen-ai/definitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -720,10 +720,6 @@ apiCreateAgentInputPublic:
description: Agent name
example: '"My Agent"'
type: string
open_ai_key_uuid:
description: Optional OpenAI API key ID to use with OpenAI models
example: '"12345678-1234-1234-1234-123456789012"'
type: string
project_id:
description: The id of the DigitalOcean project this agent will belong to
example: '"12345678-1234-1234-1234-123456789012"'
Expand Down Expand Up @@ -874,18 +870,11 @@ apiCreateModelOutput:
$ref: '#/apiModel'
type: object
apiCreateOpenAIAPIKeyInputPublic:
description: CreateOpenAIAPIKeyInputPublic is used to create a new OpenAI API key
for a specific agent.
properties:
api_key:
description: OpenAI API key
example: '"sk-proj--123456789098765432123456789"'
type: string
name:
description: Name of the key
example: '"Production Key"'
type: string
type: object
apiCreateOpenAIAPIKeyOutput:
description: CreateOpenAIAPIKeyOutput is used to return the newly created OpenAI

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: CreateOpenAIAPIKeyOutput is used to return the newly created OpenAI
description: Returns the newly created OpenAI

API key.
Expand Down Expand Up @@ -2719,10 +2708,6 @@ apiUpdateAgentInputPublic:
description: Agent name
example: '"My New Agent Name"'
type: string
open_ai_key_uuid:
description: Optional openai key uuid for use with openai models
example: '"12345678-1234-1234-1234-123456789012"'
type: string
project_id:
description: The id of the DigitalOcean project this agent will belong to
example: '"12345678-1234-1234-1234-123456789012"'
Expand Down Expand Up @@ -2901,22 +2886,13 @@ apiUpdateModelMetadataOutput:
$ref: '#/apiModel'
type: object
apiUpdateOpenAIAPIKeyInputPublic:
description: UpdateOpenAIAPIKeyInputPublic is used to update an existing OpenAI
API key for a specific agent.
properties:
api_key:
description: OpenAI API key
example: '"sk-ant-12345678901234567890123456789012"'
type: string
api_key_uuid:
description: API key ID
example: '"12345678-1234-1234-1234-123456789012"'
type: string
name:
description: Name of the key
example: '"Production Key"'
type: string
type: object
apiUpdateOpenAIAPIKeyOutput:
description: UpdateOpenAIAPIKeyOutput is used to return the updated OpenAI API key.
properties:
Expand Down
39 changes: 0 additions & 39 deletions specification/resources/gen-ai/genai_create_openai_api_key.yml

This file was deleted.

42 changes: 0 additions & 42 deletions specification/resources/gen-ai/genai_delete_openai_api_key.yml

This file was deleted.

42 changes: 0 additions & 42 deletions specification/resources/gen-ai/genai_get_openai_api_key.yml

This file was deleted.

54 changes: 0 additions & 54 deletions specification/resources/gen-ai/genai_list_agents_by_openai_key.yml

This file was deleted.

Loading