anatools.anaclient.llm module

Large Language Model Functions

create_llm_prompt(self, prompt, baseChannel, nodeType, nodeName)

Creates an LLM prompt.

Parameters
  • prompt (str) – The prompt to create

  • baseChannel (str) – The base channel to use for examples

  • nodeType (str) – The type of node to create

  • nodeName (str) – The name of the node to create

Returns

Prompt ID

Return type

str

delete_llm_prompt(self, promptId)

Deletes an LLM prompt.

Parameters

promptId (str) – The ID of a prompt.

Returns

Success code

Return type

bool

get_llm_base_channels(self)

Gets a list of the base channels

Returns

A list of the base channels

Return type

list[str]

get_llm_channel_node_types(self)

Gets a dictionary of base channels. For each channel there is a list of valid node types.

Returns

A dictionary of base channels and their valid node types

Return type

dict

get_llm_response(self, promptId)

Retrieves the response to an LLM prompt.

Parameters

promptId (str) – The ID of a prompt.

Returns

Prompt response info

Return type

dict