Provides core Agent class and utilities for conversation management, tool execution, and model handling in a TypeScript SDK.
// Source: https://github.com/strands-agents/harness-sdk | License: Apache-2.0
// Provided via justclaw.it.com; keep this notice with the code.
import {
AgentResult,
type AgentStreamEvent,
type InvocationState,
type InvokableAgent,
type InvokeArgs,
type InvokeOptions,
type LocalAgent,
type localAgentSymbol,
} from '../types/agent.js'
import { BedrockModel } from '../models/bedrock.js'
import {
contentBlockFromData,
type ContentBlock,
type ContentBlockData,
Message,
type MessageData,
type StopReason,
type SystemPrompt,
type SystemPromptData,
TextBlock,
ToolResultBlock,
ToolUseBlock,
} from '../types/messages.js'
import { deepCopy } from '../types/json.js'
import type { JSONValue } from '../types/json.js'
import { McpClient } from '../mcp/index.js'
impor
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key