@proficient/api
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -0,1 +1,2 @@ | ||
import type { InteractionParticipant, ProviderId } from '../types'; | ||
export interface Agent { | ||
@@ -6,3 +7,3 @@ [key: string]: any; | ||
active: boolean; | ||
name: string | null; | ||
name: string; | ||
description: string; | ||
@@ -14,11 +15,14 @@ created_at: number; | ||
[key: string]: any; | ||
name: string | null; | ||
name: string; | ||
description: string; | ||
provider: 'openai'; | ||
provider: ProviderId; | ||
system_prompt?: string; | ||
initial_turn?: InteractionParticipant; | ||
greeting?: string; | ||
} | ||
export interface AgentUpdateParams { | ||
[key: string]: any; | ||
name?: string | null | undefined; | ||
description?: string | undefined; | ||
name?: string; | ||
description?: string; | ||
} | ||
//# sourceMappingURL=Agent.d.ts.map |
@@ -0,1 +1,2 @@ | ||
import type { InteractionParticipant, ProviderId } from '../types'; | ||
export interface AgentConfig { | ||
@@ -5,10 +6,14 @@ [key: string]: any; | ||
agent_id: string; | ||
provider: 'openai'; | ||
prompt: string; | ||
provider: ProviderId; | ||
system_prompt: string; | ||
initial_turn: InteractionParticipant; | ||
greeting: string; | ||
} | ||
export interface AgentConfigUpdateParams { | ||
[key: string]: any; | ||
provider?: 'openai'; | ||
prompt?: string; | ||
provider?: ProviderId; | ||
system_prompt?: string; | ||
initial_turn?: InteractionParticipant; | ||
greeting?: string; | ||
} | ||
//# sourceMappingURL=AgentConfig.d.ts.map |
@@ -0,1 +1,2 @@ | ||
import type { InteractionParticipant } from '../types'; | ||
export interface Interaction { | ||
@@ -6,6 +7,8 @@ [key: string]: any; | ||
agent_id: string; | ||
archived: boolean; | ||
user_id: string; | ||
created_at: number; | ||
updated_at: number; | ||
message_count: number; | ||
total_message_count: number; | ||
turn: InteractionParticipant; | ||
} | ||
@@ -12,0 +15,0 @@ export interface InteractionCreateParams { |
@@ -0,1 +1,2 @@ | ||
import type { InteractionParticipant } from '../types'; | ||
export interface Message { | ||
@@ -8,3 +9,3 @@ [key: string]: any; | ||
content: string; | ||
sent_by: 'user' | 'agent'; | ||
sent_by: InteractionParticipant; | ||
} | ||
@@ -15,3 +16,6 @@ export interface MessageCreateParams { | ||
content: string; | ||
reply_to: string; | ||
/** | ||
* Must be set to the ID of the last message by the agent in the interaction. | ||
*/ | ||
parent_id: string; | ||
} | ||
@@ -18,0 +22,0 @@ export interface MessageResendParams { |
@@ -5,3 +5,5 @@ import type { Agent } from './resources/Agent'; | ||
import type { Message } from './resources/Message'; | ||
export type ProviderId = 'openai'; | ||
export type InteractionParticipant = 'user' | 'agent'; | ||
export type ResourceType = (Agent | AgentConfig | Interaction | Message)['object']; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@proficient/api", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "source": "./src/index.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19077
328