Framework Namespace.
More...
|
namespace | llms |
| Large Language Models Namespace.
|
|
namespace | media |
| Media envelope namespace.
|
|
namespace | tools |
| Tools Namespace.
|
|
namespace | workflows |
| Worflows Namespace.
|
|
◆ JsonArray
JSON array type.
- Note
- This is a JSON array type. It contains the JSON array.
◆ JsonObject
JSON object type.
- Note
- This is a JSON object type. It contains the JSON object.
◆ ParameterMap
Parameter map type.
- Note
- This is a parameter map type. It contains the string and parameter.
◆ String
String type.
- Note
- This is a string type. It contains the string.
◆ StringMap
String map type.
- Note
- This is a string map type. It contains the string and string.
◆ ToolCallback
Callback type for tool execution.
- Note
- This is the callback type for tool execution. It is a function that takes a json object and returns a tool result.
◆ MemoryType
Memory types.
- Note
- This is a type of memory. It contains the type of memory, the name of the memory, and the content of the memory.
Enumerator |
---|
SHORT_TERM | Short term memory.
|
LONG_TERM | Long term memory.
|
WORKING | Working memory.
|
◆ TransportProtocol
Transport protocol types for live AI communication.
Different protocols offer different trade-offs in terms of latency, reliability, and browser compatibility.
Enumerator |
---|
WEBSOCKET | WebSocket-based communication (high compatibility, medium latency)
|
WEBRTC | WebRTC-based communication (low latency, requires ICE servers)
|
HTTP_STREAM | HTTP streaming (fallback option, high latency)
|
CUSTOM | Custom protocol implementation.
|
◆ blockingWait() [1/2]
template<typename T>
T agents::blockingWait |
( |
Task< T > && | task | ) |
|
Helper to run a coroutine and get the result synchronously.
- Template Parameters
-
- Parameters
-
- Returns
- The result of the task
◆ blockingWait() [2/2]
void agents::blockingWait |
( |
Task< void > && | task | ) |
|
|
inline |
Helper to run a coroutine and get the result synchronously.
- Parameters
-
◆ collectAll()
template<typename T>
std::vector< T > agents::collectAll |
( |
AsyncGenerator< T > && | generator | ) |
|
Helper to run an async generator and collect results.
- Template Parameters
-
- Parameters
-
generator | The generator to collect results from |
- Returns
- The results of the generator
◆ collectAllFromGenerator()
template<typename T>
Task< std::vector< T > > agents::collectAllFromGenerator |
( |
AsyncGenerator< T > && | generator | ) |
|
Helper to collect all results from an AsyncGenerator.
- Template Parameters
-
- Parameters
-
generator | The generator to collect results from |
- Returns
- The results of the generator
◆ createLLM()
Factory function to create a specific LLM provider.
- Parameters
-
provider | One of: "anthropic", "openai", "google", "ollama" |
api_key | API key for the provider |
model | Model to use (provider-specific) |
- Returns
- The LLMInterface
◆ createMemory()
std::shared_ptr< Memory > agents::createMemory |
( |
| ) |
|
◆ createTool()
Create a custom tool with a name, description, parameters, and callback.
- Parameters
-
name | The name of the tool |
description | The description of the tool |
parameters | The parameters of the tool |
callback | The callback for the tool |
- Returns
- A shared pointer to the tool
◆ getExecutor()
Get a global executor.
- Returns
- Pointer to global executor