UNPKG
mateus-ai-agent-sdk
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
A simple SDK to interact with OpenAI models
mateus-ai-agent-sdk
/
src
/
runner.ts
11 lines
(8 loc)
•
247 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
Agent
from
'./agents/agent'
;
class
Runner
{
static
async
run
(
agent
:
Agent
,
input
:
string
):
Promise
<{
final_output
:
string
}> {
const
result =
await
agent.
run
(input);
return
{
final_output
: result }; } }
export
default
Runner
;