Skip to content

Commit

Permalink
chore(agents): remove optional type for streamlit
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Dvorak <[email protected]>
  • Loading branch information
Tomas2D committed Dec 6, 2024
1 parent 10314af commit d552506
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/agents/experimental/streamlit/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ export interface StreamlitRunInput {
prompt: string | null;
}

interface Options extends BaseAgentRunOptions {}

interface Block {
name: "text" | "app";
content: string;
Expand Down Expand Up @@ -70,7 +68,7 @@ export interface StreamlitEvents {
}>;
}

export class StreamlitAgent extends BaseAgent<StreamlitRunInput, StreamlitRunOutput, Options> {
export class StreamlitAgent extends BaseAgent<StreamlitRunInput, StreamlitRunOutput> {
public emitter = new Emitter<StreamlitEvents>({
namespace: ["agent", "experimental", "streamlit"],
creator: this,
Expand All @@ -94,7 +92,7 @@ export class StreamlitAgent extends BaseAgent<StreamlitRunInput, StreamlitRunOut

protected async _run(
input: StreamlitRunInput,
_options: Options | undefined,
_options: BaseAgentRunOptions,
run: GetRunContext<typeof this>,
): Promise<StreamlitRunOutput> {
const { userMessage, runMemory } = await this.prepare(input);
Expand Down

0 comments on commit d552506

Please sign in to comment.